|
|
@@ -26,7 +26,7 @@
|
|
|
<script>
|
|
|
import {postAction} from '@/api/manage'
|
|
|
import {Button, Cell, CellGroup, Field, Toast} from 'vant';
|
|
|
- import {setStore} from "@/utils/storage";
|
|
|
+ import {setStore,getStore} from "@/utils/storage";
|
|
|
|
|
|
export default {
|
|
|
name: "index",
|
|
|
@@ -51,6 +51,12 @@
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
+ created() {
|
|
|
+ //企业已登录,跳转企业首页
|
|
|
+ if( getStore('login') ){
|
|
|
+ this.$router.replace({name:'user',params: { enterprise_id: 123 }});
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
login() {
|
|
|
this.loading = true;
|