spogulis no
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-11 12:49:30 +08:00
feat: 新增首页轮播支持配置
Šī revīzija ir iekļauta:
@@ -31,8 +31,15 @@ export default {
|
||||
// #endif
|
||||
|
||||
// 获取mockjson
|
||||
if (res.basicConfig.auditModeEnabled) {
|
||||
await uni.$tm.vx.actions('config/fetchMockJson')
|
||||
if (res.auditConfig.auditModeEnabled) {
|
||||
if (res.auditConfig.auditModeData.jsonUrl) {
|
||||
await uni.$tm.vx.actions('config/fetchMockJson')
|
||||
} else {
|
||||
const mockJson = uni.$utils.checkJsonAndParse(res.auditConfig.auditModeData.jsonData)
|
||||
if (mockJson.ok) {
|
||||
uni.$tm.vx.commit('config/setMockJson', mockJson.jsonData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 进入检查
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user