import { computed } from 'vue'; import store from '@/store/index'; // const fullPath = store.getters['finance/fullPath']; // console.log('fullPath: ', fullPath); const domain = computed(() => store.state.domain); export function setupFinance(app) { uni.$u.api = { ...uni.$u.api } || {}; // 根据任务id获取财务条信息 uni.$u.api.getFinanceByTask = taskDetailId => uni.$u.post(`${domain.value}/finance/getByTask`, { taskDetailId }); }