From b7861c6f87f08ed505a3b5eb6639078e54d10b8c Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Mon, 13 Oct 2025 18:46:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=A3=E7=90=86=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E9=A1=B5):=20=E5=B1=95=E7=A4=BA=E6=88=91=E7=9A=84?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Agency/AgencySettingView.vue | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/views/Agency/AgencySettingView.vue b/src/views/Agency/AgencySettingView.vue index abf2741..886776c 100644 --- a/src/views/Agency/AgencySettingView.vue +++ b/src/views/Agency/AgencySettingView.vue @@ -23,7 +23,7 @@
- {{ userInfo.name }} + {{ userInfo.userNickname || userInfo.name }}
ID: {{ userInfo.id }}
@@ -47,28 +47,17 @@ import { reactive } from 'vue' import { useRouter } from 'vue-router' import MobileHeader from '../../components/MobileHeader.vue' import { showError } from '@/utils/toast.js' +import { usePageInitializationWithConfig } from '@/utils/pageConfig.js' const router = useRouter() -// 用户信息 -const userInfo = reactive({ - name: 'User1', - id: '1234567890', -}) - const defaultAvatarUrl = (e) => { console.log('头像资源出错') e.target.onerror = null //防止循环 e.target.src = new URL('/src/assets/images/WeeklyStar/defaultAvatar.png', import.meta.url).href } -// 方法 -const leaveAgent = () => { - if (confirm('Are you sure you want to leave this agency?')) { - showError('Leave agency request submitted') - // 这里可以添加实际的离开代理商逻辑 - } -} +const { userInfo } = usePageInitializationWithConfig('AGENCY_CENTER')