登录增加切换身份置空商户号
This commit is contained in:
parent
d0bb6bff46
commit
7030d60847
|
|
@ -120,11 +120,11 @@
|
|||
icon: '/static/indexImg/icon-line-up.svg',
|
||||
pageUrl: 'PAGES_LINE_UP'
|
||||
},
|
||||
{
|
||||
title: '成员管理',
|
||||
icon: '/static/indexImg/icon-staff.svg',
|
||||
pageUrl: 'PAGES_USER'
|
||||
},
|
||||
// {
|
||||
// title: '成员管理',
|
||||
// icon: '/static/indexImg/icon-staff.svg',
|
||||
// pageUrl: 'PAGES_USER'
|
||||
// },
|
||||
{
|
||||
title: '设置中心',
|
||||
icon: '/static/indexImg/icon-cashier.svg',
|
||||
|
|
|
|||
|
|
@ -145,7 +145,8 @@
|
|||
import {
|
||||
ref,
|
||||
reactive,
|
||||
onMounted
|
||||
onMounted,
|
||||
watch
|
||||
} from 'vue';
|
||||
import {
|
||||
$loginByPwd,
|
||||
|
|
@ -339,9 +340,15 @@
|
|||
})
|
||||
// #endif
|
||||
}
|
||||
watch(()=>accountType.sel,(newval)=>{
|
||||
if(newval==1){
|
||||
vdata.formData.merchantName=uni.getStorageSync('merchantName')||''
|
||||
}else{
|
||||
vdata.formData.username=''
|
||||
}
|
||||
})
|
||||
// 封装登录成功后的操作
|
||||
async function loginFinishFunc(loginBizData) {
|
||||
|
||||
// 保存 token
|
||||
storageManage.setLogin(loginBizData)
|
||||
storageManage.token(loginBizData.token)
|
||||
|
|
|
|||
Loading…
Reference in New Issue