mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 01:50:15 +09:00
update: 修改模拟数据请求地址为动态配置
This commit is contained in:
parent
5efc877a89
commit
2b717ad449
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user