You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
563 B
16 lines
563 B
import store from '@/store/index.js';
|
|
import { computed } from 'vue';
|
|
|
|
const domain = computed(() => store.state.domain);
|
|
|
|
export function setupProject(app) {
|
|
uni.$u.api = { ...uni.$u.api } || {};
|
|
//根据id获取项目信息
|
|
uni.$u.api.findProjectById = param => uni.$u.post(`${domain.value}/tall/project/findProjectById`, param);
|
|
|
|
//创建分享连接
|
|
uni.$u.api.createShare = param => uni.$u.post(`${domain.value}/share/create`, param);
|
|
|
|
//点击分享连接
|
|
uni.$u.api.clickShare = param => uni.$u.post(`${domain.value}/share/click`, param);
|
|
};
|
|
|