mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 10:00:13 +09:00
update: 调整获取模拟参数请求策略
This commit is contained in:
parent
e8edc03526
commit
7c15c84dba
@ -3,16 +3,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const homePagePath = '/pages/tabbar/home/home'
|
const homePagePath = '/pages/tabbar/home/home'
|
||||||
const startPagePath = '/pagesA/start/start'
|
const startPagePath = '/pagesA/start/start'
|
||||||
const articleDetailPath = '/pagesA/article-detail/article-detail';
|
const articleDetailPath = '/pagesA/article-detail/article-detail';
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
configs() {
|
configs() {
|
||||||
return this.$tm.vx.getters().getConfigs;
|
return this.$tm.vx.getters().getConfigs;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad: function(options) {
|
onLoad: function (options) {
|
||||||
uni.$tm.vx.actions('config/fetchConfigs').then(async (res) => {
|
uni.$tm.vx.actions('config/fetchConfigs').then(async (res) => {
|
||||||
if (options.scene) {
|
if (options.scene) {
|
||||||
if ('' !== options.scene) {
|
if ('' !== options.scene) {
|
||||||
@ -31,7 +31,9 @@
|
|||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
// 获取mockjson
|
// 获取mockjson
|
||||||
|
if (res.basicConfig.auditModeEnabled) {
|
||||||
await uni.$tm.vx.actions('config/fetchMockJson')
|
await uni.$tm.vx.actions('config/fetchMockJson')
|
||||||
|
}
|
||||||
|
|
||||||
// 进入检查
|
// 进入检查
|
||||||
this.fnCheckShowStarted();
|
this.fnCheckShowStarted();
|
||||||
@ -80,5 +82,5 @@
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue
Block a user