diff --git a/store/config.js b/store/config.js index e178ce1..5d6c411 100644 --- a/store/config.js +++ b/store/config.js @@ -7,6 +7,7 @@ */ import {DefaultAppConfigs, getAppConfigs, setAppConfigs,setAppMockJson,getAppMockJson} from '@/config/index.js' import v2Config from '@/api/v2/all.config.js' +import utils from '@/utils/index.js' export default { namespaced: true, @@ -59,8 +60,7 @@ export default { // 请求模拟数据 fetchMockJson({state, commit, dispatch}) { return new Promise(async (resolve, reject) => { - // const mockJsonUrl = utils.checkUrl(state.configs.basicConfig.auditModeMock) - const mockJsonUrl = "https://uni-halo.925i.cn/unihalo.mock.json" + const mockJsonUrl = utils.checkUrl(state.configs.basicConfig.auditModeMockUrl) uni.request({ url: mockJsonUrl, method: "GET",