mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-21 02:15:54 +08:00
feat: ✨ 商家端新增redirect登录功能
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<div class="login" @click="$refs.verify.show = false">
|
||||
<Row type="flex" @keydown.enter.native="submitLogin">
|
||||
<Col style="width: 368px">
|
||||
@@ -156,10 +156,14 @@ export default {
|
||||
|
||||
util.initRouter(this);
|
||||
this.$store.commit("setAvatarPath", res.result.storeLogo);
|
||||
|
||||
const redirectRouter = this.$route.query.redirect;
|
||||
// 加载菜单
|
||||
this.$router.push({
|
||||
name: "home_index",
|
||||
});
|
||||
const push = {
|
||||
path: redirectRouter || "/home",
|
||||
}
|
||||
|
||||
this.$router.push(push);
|
||||
} else {
|
||||
this.loading = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user