Commit a2f8805b authored by 耿迪迪's avatar 耿迪迪
parents b12bd51c baf7083c
...@@ -53,6 +53,11 @@ export const constantRoutes = [ ...@@ -53,6 +53,11 @@ export const constantRoutes = [
component: (resolve) => require(['@/views/error/401'], resolve), component: (resolve) => require(['@/views/error/401'], resolve),
hidden: true hidden: true
}, },
{
path: '/bigWindow',
component: (resolve) => require(['@/views/bigWindow'], resolve),
hidden: true
},
{ {
path: '', path: '',
component: Layout, component: Layout,
......
<!--
* @Author: your name
* @Date: 2022-01-07 13:36:55
* @LastEditTime: 2022-01-07 14:32:07
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /gassafetyprogress-web/src/views/bigWindow/index.vue
-->
<template>
<div >
<div>big window</div>
<button class="go" @click="goIndex">go index</button>
</div>
</template>
<script>
export default {
methods:{
goIndex(){
this.$router.push('/index')
}
}
}
</script>
<style lang="scss" scoped>
.go{
cursor: pointer;
}
</style>>
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
云产品通用红包,可叠加官网常规优惠使用。(仅限新用户) 云产品通用红包,可叠加官网常规优惠使用。(仅限新用户)
</h4> </h4>
</blockquote> </blockquote>
<hr /> <hr />
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -88,6 +88,7 @@ export default { ...@@ -88,6 +88,7 @@ export default {
$route: { $route: {
handler: function(route) { handler: function(route) {
this.redirect = route.query && route.query.redirect; this.redirect = route.query && route.query.redirect;
}, },
immediate: true immediate: true
} }
...@@ -127,7 +128,7 @@ export default { ...@@ -127,7 +128,7 @@ export default {
Cookies.remove('rememberMe'); Cookies.remove('rememberMe');
} }
this.$store.dispatch("Login", this.loginForm).then(() => { this.$store.dispatch("Login", this.loginForm).then(() => {
this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); this.$router.push({ path: "/bigWindow" || "/" }).catch(()=>{});
}).catch(() => { }).catch(() => {
this.loading = false; this.loading = false;
this.getCode(); this.getCode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment