update: 调整获取模拟参数请求策略

This commit is contained in:
小莫唐尼 2024-10-28 18:38:29 +08:00
parent e8edc03526
commit 7c15c84dba

View File

@ -3,16 +3,16 @@
</template>
<script>
const homePagePath = '/pages/tabbar/home/home'
const startPagePath = '/pagesA/start/start'
const articleDetailPath = '/pagesA/article-detail/article-detail';
export default {
const homePagePath = '/pages/tabbar/home/home'
const startPagePath = '/pagesA/start/start'
const articleDetailPath = '/pagesA/article-detail/article-detail';
export default {
computed: {
configs() {
return this.$tm.vx.getters().getConfigs;
}
},
onLoad: function(options) {
onLoad: function (options) {
uni.$tm.vx.actions('config/fetchConfigs').then(async (res) => {
if (options.scene) {
if ('' !== options.scene) {
@ -31,7 +31,9 @@
// #endif
// mockjson
if (res.basicConfig.auditModeEnabled) {
await uni.$tm.vx.actions('config/fetchMockJson')
}
//
this.fnCheckShowStarted();
@ -80,5 +82,5 @@
return null;
}
}
};
};
</script>