diff --git a/src/views/HostSettingView.vue b/src/views/HostSettingView.vue index 179016e..e230879 100644 --- a/src/views/HostSettingView.vue +++ b/src/views/HostSettingView.vue @@ -2,24 +2,43 @@
-
+
-
-
-

My Agent

- 🏢 Agency +
+
+
My Agent
+
-
-
-
- {{ userInfo.name.charAt(0) }} +
+ +
+ +
+
+ {{ userInfo.name }} +
+
ID: {{ userInfo.id }}
-
-

{{ userInfo.name }}

-

ID: {{ userInfo.id }}

-
- +
+ +
+
Leave
@@ -31,16 +50,22 @@ import { reactive } from 'vue' import { useRouter } from 'vue-router' import MobileHeader from '../components/MobileHeader.vue' -import {showError} from "@/utils/toast.js"; +import { showError } from '@/utils/toast.js' const router = useRouter() // 用户信息 const userInfo = reactive({ name: 'User1', - id: '1234567890' + 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 agent?')) { @@ -51,100 +76,44 @@ const leaveAgent = () => {