chore: 使用常量来处理首页的路由页面路径
This commit is contained in:
@@ -302,7 +302,7 @@ export default {
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.$util.redirectTo('/pages/index/index');
|
||||
this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
}, 2000);
|
||||
}
|
||||
}, 1000);
|
||||
@@ -544,7 +544,7 @@ export default {
|
||||
if (getCurrentPages().length > 1) uni.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
else this.$util.redirectTo('/pages/index/index');
|
||||
else this.$util.redirectTo(this.$util.INDEX_PAGE_URL);
|
||||
},
|
||||
getNewestGame() {
|
||||
this.$api.sendRequest({
|
||||
|
||||
Reference in New Issue
Block a user