|
|
@@ -84,7 +84,7 @@
|
|
|
import {staffRegister} from '@/api/index'
|
|
|
import {Button, Cell, CellGroup, Field, Toast, Col, Row, Dialog} from 'vant';
|
|
|
import {getUrlParams} from '@/utils/util';
|
|
|
- import {setStore} from "@/utils/storage";
|
|
|
+ import {setStore, getStore} from "@/utils/storage";
|
|
|
import img_phone from '@/assets/phone.png'
|
|
|
import img_code from '@/assets/code.png'
|
|
|
import img_phone_empty from '@/assets/phone_empty.png'
|
|
|
@@ -128,6 +128,18 @@
|
|
|
this.enterprise_id = getUrlParams(str).enterprise_id;
|
|
|
this.enterprise_name = getUrlParams(str).enterprise_name;
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ if (getStore('staff')) {
|
|
|
+ setStore('role', 'staff');
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/index',
|
|
|
+ query: {
|
|
|
+ enterprise_id: getStore('staff').enterpriseId,
|
|
|
+ enterprise_name: getStore('staff').enterpriseName
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
isMobile(value) {
|
|
|
return isMobile(value)
|