use absolute path for all routes

This commit is contained in:
RockYang
2023-09-07 10:27:18 +08:00
parent 3b26735998
commit f943669e18
9 changed files with 27 additions and 19 deletions

View File

@@ -34,7 +34,7 @@
<el-row class="text-line">
还没有账号
<el-link type="primary" @click="router.push('register')">注册新账号</el-link>
<el-link type="primary" @click="router.push('/register')">注册新账号</el-link>
</el-row>
</div>
</div>
@@ -66,9 +66,9 @@ const password = ref(process.env.VUE_APP_PASS);
checkSession().then(() => {
if (isMobile()) {
router.push('mobile')
router.push('/mobile')
} else {
router.push('chat')
router.push('/chat')
}
}).catch(() => {
})
@@ -94,7 +94,7 @@ const login = function () {
if (isMobile()) {
router.push('/mobile')
} else {
router.push('chat')
router.push('/chat')
}
}).catch((e) => {
ElMessage.error('登录失败,' + e.message)