修复商户Id读取及保存
This commit is contained in:
@@ -68,11 +68,8 @@
|
||||
<div class="user-profile">
|
||||
<div class="user-info">
|
||||
<div class="nickname">
|
||||
<span class="ele-text-heading">
|
||||
{{ loginUser.realName || loginUser.nickname }}
|
||||
</span>
|
||||
<div class="ele-text-placeholder">
|
||||
用户ID:<span class="ele-text-secondary">{{
|
||||
UID:<span class="ele-text-secondary">{{
|
||||
loginUser.userId
|
||||
}}</span>
|
||||
<copy-outlined
|
||||
@@ -80,6 +77,12 @@
|
||||
@click="copyText(loginUser.userId)"
|
||||
/>
|
||||
</div>
|
||||
<span class="ele-text-placeholder">
|
||||
昵称:
|
||||
<span class="ele-text-secondary">{{
|
||||
loginUser.nickname
|
||||
}}</span>
|
||||
</span>
|
||||
<div class="role" style="margin-top: 10px">
|
||||
<template
|
||||
v-for="(item, index) in loginUser.roles"
|
||||
@@ -166,7 +169,7 @@
|
||||
SearchOutlined
|
||||
} from '@ant-design/icons-vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { copyText, getMerchantId, openNew, openUrl } from "@/utils/common";
|
||||
import { copyText, getMerchantId, openNew, openUrl } from '@/utils/common';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import HeaderNotice from './header-notice.vue';
|
||||
import PasswordModal from './password-modal.vue';
|
||||
@@ -333,7 +336,6 @@
|
||||
// 更新商户ID和名称
|
||||
if (!getMerchantId() && loginUser.value.merchantId == null) {
|
||||
listMerchantAccount({ phone: loginUser.value.phone }).then((res) => {
|
||||
console.log(res);
|
||||
if (res.length > 0) {
|
||||
const item = res[0];
|
||||
authUser({
|
||||
|
||||
@@ -110,7 +110,10 @@
|
||||
"
|
||||
style="max-width: 580px; margin-top: 20px"
|
||||
>
|
||||
<a-form-item label="登录账号" v-bind="validateInfos.username">
|
||||
<a-form-item label="用户ID" v-bind="validateInfos.userId">
|
||||
<a-input disabled v-model:value="form.userId" allow-clear />
|
||||
</a-form-item>
|
||||
<a-form-item label="用户名" v-bind="validateInfos.username">
|
||||
<a-input
|
||||
disabled
|
||||
v-model:value="form.username"
|
||||
|
||||
Reference in New Issue
Block a user