verce-vue-test 0.0.55 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,20 @@
1
1
  <script setup lang="ts">
2
+ import { useAppStore } from '@/stores/app'
3
+
2
4
  const route = useRoute()
3
5
  const router = useRouter()
6
+ const appStore = useAppStore()
4
7
 
5
- const tabItems = [
8
+ const baseTabItems = [
6
9
  { title: '首页', path: '/', icon: 'wap-home-o' },
7
10
  { title: '公告', path: '/articles', icon: 'records-o' },
8
11
  { title: '我的', path: '/mine', icon: 'manager-o' },
9
12
  ]
10
13
 
14
+ const tabItems = computed(() =>
15
+ baseTabItems.filter((item) => item.path !== '/articles' || appStore.showAnnouncementTab),
16
+ )
17
+
11
18
  const showTabbar = computed(() => route.meta.hideTabbar !== true)
12
19
 
13
20
  const activeTab = computed({
@@ -0,0 +1,170 @@
1
+ import {
2
+ buildTamRequestPayload,
3
+ tamRequest,
4
+ type TamRequestPayload,
5
+ type TamResponse,
6
+ } from '@/api/tam'
7
+
8
+ export type PbcPositionSendPayload = {
9
+ appHead: TamRequestPayload<PbcPositionEmptyBody>['appHead']
10
+ body: PbcPositionEmptyBody
11
+ head: TamRequestPayload<PbcPositionEmptyBody>['head']
12
+ }
13
+
14
+ export type PbcPositionQueryPayload = {
15
+ appHead: TamRequestPayload<PbcPositionEmptyBody>['appHead']
16
+ body: PbcPositionEmptyBody
17
+ head: TamRequestPayload<PbcPositionEmptyBody>['head']
18
+ }
19
+
20
+ export type PbcPositionDetailPayload = {
21
+ appHead: TamRequestPayload<PbcPositionDetailRequestBody>['appHead']
22
+ body: PbcPositionDetailRequestBody
23
+ head: TamRequestPayload<PbcPositionDetailRequestBody>['head']
24
+ }
25
+
26
+ export type PbcPositionSendResult = {
27
+ body: PbcPositionSendBody
28
+ head: TamResponse<PbcPositionSendBody>['head']
29
+ }
30
+
31
+ export type PbcPositionQueryResult = {
32
+ body: PbcPositionQueryBody
33
+ head: TamResponse<PbcPositionQueryBody>['head']
34
+ }
35
+
36
+ export type PbcPositionDetailResult = {
37
+ body: PbcPositionDetailBody
38
+ head: TamResponse<PbcPositionDetailBody>['head']
39
+ }
40
+
41
+ export type PbcPositionRecord = {
42
+ /** 应答平台流水号,查询明细入参。 */
43
+ refNo?: string
44
+ /** 清算账户行号。 */
45
+ settleBankNo?: string
46
+ /** 清算账户余额,接口按元返回。 */
47
+ settleBal?: string
48
+ /** 可用头寸,接口按元返回。 */
49
+ avaAmt?: string
50
+ /** 预期头寸,接口按元返回。 */
51
+ expectAmt?: string
52
+ /** 更新时间。 */
53
+ updateTime?: string
54
+ }
55
+
56
+ export type PbcPositionDetailBody = PbcPositionRecord & {
57
+ /** 申请平台流水号。 */
58
+ refNo?: string
59
+ /** 应答平台流水号。 */
60
+ resRefNo?: string
61
+ /** 排队借记总金额,接口按元返回。 */
62
+ lineDrAmt?: string
63
+ /** 排队贷记总金额,接口按元返回。 */
64
+ lineCrAmt?: string
65
+ /** 所辖非清算账户数。 */
66
+ subAcctNumber?: string
67
+ /** 所辖非清算总余额,接口按元返回。 */
68
+ subAcctAmt?: string
69
+ }
70
+
71
+ export type PbcPositionBalance = PbcPositionRecord &
72
+ PbcPositionDetailBody & {
73
+ /** 发送交易返回的申请平台流水号。 */
74
+ requestRefNo?: string
75
+ }
76
+
77
+ type PbcPositionEmptyBody = Record<string, never>
78
+
79
+ type PbcPositionSendBody = {
80
+ refNo?: string
81
+ }
82
+
83
+ type PbcPositionQueryBody = {
84
+ resultList?: PbcPositionRecord[]
85
+ }
86
+
87
+ type PbcPositionDetailRequestBody = {
88
+ refNo: string
89
+ settleBankNo: string
90
+ }
91
+
92
+ const SEND_TRAN_CODE = '/TAM/0001/140104009'
93
+ const QUERY_TRAN_CODE = '/TAM/0001/140104010'
94
+ const DETAIL_TRAN_CODE = '/TAM/0001/140104011'
95
+
96
+ export function buildPbcPositionSendPayload(): PbcPositionSendPayload {
97
+ return buildTamRequestPayload({
98
+ tranCode: SEND_TRAN_CODE,
99
+ body: {},
100
+ })
101
+ }
102
+
103
+ export async function sendPbcPositionRequest(
104
+ payload: PbcPositionSendPayload,
105
+ ): Promise<PbcPositionSendResult> {
106
+ return tamRequest<PbcPositionEmptyBody, PbcPositionSendBody>(payload)
107
+ }
108
+
109
+ export function buildPbcPositionQueryPayload(): PbcPositionQueryPayload {
110
+ return buildTamRequestPayload({
111
+ tranCode: QUERY_TRAN_CODE,
112
+ body: {},
113
+ })
114
+ }
115
+
116
+ export async function queryPbcPositionList(
117
+ payload: PbcPositionQueryPayload,
118
+ ): Promise<PbcPositionQueryResult> {
119
+ return tamRequest<PbcPositionEmptyBody, PbcPositionQueryBody>(payload)
120
+ }
121
+
122
+ export function buildPbcPositionDetailPayload(
123
+ record: Pick<PbcPositionRecord, 'refNo' | 'settleBankNo'>,
124
+ ): PbcPositionDetailPayload {
125
+ return buildTamRequestPayload({
126
+ tranCode: DETAIL_TRAN_CODE,
127
+ body: {
128
+ refNo: record.refNo || '',
129
+ settleBankNo: record.settleBankNo || '',
130
+ },
131
+ })
132
+ }
133
+
134
+ export async function queryPbcPositionDetail(
135
+ payload: PbcPositionDetailPayload,
136
+ ): Promise<PbcPositionDetailResult> {
137
+ return tamRequest<PbcPositionDetailRequestBody, PbcPositionDetailBody>(payload)
138
+ }
139
+
140
+ export async function queryPbcPositionBalance(requestRefNo: string): Promise<PbcPositionBalance> {
141
+ const queryPayload = buildPbcPositionQueryPayload()
142
+ console.log('[人行头寸余额查询1入参]', queryPayload)
143
+
144
+ const queryResponse = await queryPbcPositionList(queryPayload)
145
+ const records = queryResponse.body.resultList || []
146
+
147
+ if (records.length === 0) {
148
+ throw new Error('人行头寸余额查询结果为空')
149
+ }
150
+
151
+ for (const record of records) {
152
+ if (!record.refNo || !record.settleBankNo) continue
153
+
154
+ const detailPayload = buildPbcPositionDetailPayload(record)
155
+ console.log('[人行头寸余额查询2入参]', detailPayload)
156
+
157
+ const detailResponse = await queryPbcPositionDetail(detailPayload)
158
+
159
+ if (detailResponse.body.refNo !== requestRefNo) continue
160
+
161
+ return {
162
+ ...record,
163
+ ...detailResponse.body,
164
+ requestRefNo,
165
+ resRefNo: detailResponse.body.resRefNo || record.refNo,
166
+ }
167
+ }
168
+
169
+ throw new Error(`未查询到编号 ${requestRefNo} 对应的余额结果`)
170
+ }
@@ -18,6 +18,8 @@ export type RmbForecastRecord = {
18
18
  groundBranch?: string
19
19
  /** 预报金额,接口按元返回,页面转换为亿元展示。 */
20
20
  predAmt?: string
21
+ /** 预报流水号,点击列表进入详情的主键。 */
22
+ predRefNo?: string
21
23
  /** 预报状态,用于判断列表状态标签。 */
22
24
  predStatus?: string
23
25
  /** 交易日期,列表日期展示字段。 */
@@ -48,6 +50,17 @@ export type RmbForecastQueryResult = {
48
50
  head: TamResponse<RmbForecastQueryResultBody>['head']
49
51
  }
50
52
 
53
+ export type RmbForecastDetailPayload = {
54
+ appHead: TamRequestPayload<RmbForecastDetailBody>['appHead']
55
+ body: RmbForecastDetailBody
56
+ head: TamRequestPayload<RmbForecastDetailBody>['head']
57
+ }
58
+
59
+ export type RmbForecastDetailResult = {
60
+ body: RmbForecastDetailRecord
61
+ head: TamResponse<RmbForecastDetailRecord>['head']
62
+ }
63
+
51
64
  type RmbForecastQueryBody = {
52
65
  /** 业务类型,当前视图未开放筛选,固定传空。 */
53
66
  busiType: string
@@ -80,13 +93,78 @@ type RmbForecastQueryResultBody = {
80
93
  totalCount: string
81
94
  }
82
95
 
96
+ type RmbForecastDetailBody = {
97
+ /** 预报流水号,详情查询主键。 */
98
+ predRefNo: string
99
+ }
100
+
101
+ export type RmbForecastDetailRecord = {
102
+ /** 出票日 */
103
+ billDate?: string
104
+ /** 票号 */
105
+ billNo?: string
106
+ /** 业务类型 */
107
+ busiType?: string
108
+ /** 客户名称 */
109
+ clientName?: string
110
+ /** 客户类型 */
111
+ clientType?: string
112
+ /** 交易对手账号 */
113
+ competAcct?: string
114
+ /** 交易对手名称 */
115
+ competName?: string
116
+ /** 额度标志 */
117
+ eduFlag?: string
118
+ /** 落地机构名称 */
119
+ groundBranch?: string
120
+ /** 落地机构代码 */
121
+ groundBranchCode?: string
122
+ /** 联系人 */
123
+ linkMan?: string
124
+ /** 支付渠道 */
125
+ payChannel?: string
126
+ /** 收支方向 */
127
+ payDirec?: string
128
+ /** 联系电话 */
129
+ phoneNo?: string
130
+ /** 预报金额 */
131
+ predAmt?: string
132
+ /** 预报机构 */
133
+ predBranch?: string
134
+ /** 预报机构 */
135
+ predBranchName?: string
136
+ /** 预报人员编号 */
137
+ predCode?: string
138
+ /** 预报日期 */
139
+ predDate?: string
140
+ /** 预报人员姓名 */
141
+ predName?: string
142
+ /** 预报流水号 */
143
+ predRefNo?: string
144
+ /** 预报状态 */
145
+ predStatus?: string
146
+ /** 用途 */
147
+ purpose?: string
148
+ /** 备注 */
149
+ remark?: string
150
+ /** 标准名称 */
151
+ standardName?: string
152
+ /** 交易日期 */
153
+ tranDate?: string
154
+ /** 已核销金额 */
155
+ verifyAmt?: string
156
+ /** 核销状态 */
157
+ verifyStatus?: string
158
+ }
159
+
83
160
  type QueryOptions = {
84
161
  form: RmbForecastQueryForm
85
162
  pageIndex: number
86
163
  pageSize: number
87
164
  }
88
165
 
89
- const TRAN_CODE = '/TAM/0001/140101001'
166
+ const QUERY_TRAN_CODE = '/TAM/0001/140101001'
167
+ const DETAIL_TRAN_CODE = '/TAM/0001/140101002'
90
168
 
91
169
  export function buildRmbForecastQueryPayload({
92
170
  form,
@@ -97,7 +175,7 @@ export function buildRmbForecastQueryPayload({
97
175
 
98
176
  // 当前视图只提供交易日期、落地机构、起始金额、截止金额,其余查询字段按接口约定传空。
99
177
  return buildTamRequestPayload({
100
- tranCode: TRAN_CODE,
178
+ tranCode: QUERY_TRAN_CODE,
101
179
  pageIndex,
102
180
  pageSize,
103
181
  body: {
@@ -124,6 +202,21 @@ export async function queryRmbForecastPage(
124
202
  return tamRequest<RmbForecastQueryBody, RmbForecastQueryResultBody>(payload)
125
203
  }
126
204
 
205
+ export function buildRmbForecastDetailPayload(predRefNo: string): RmbForecastDetailPayload {
206
+ return buildTamRequestPayload({
207
+ tranCode: DETAIL_TRAN_CODE,
208
+ body: {
209
+ predRefNo,
210
+ },
211
+ })
212
+ }
213
+
214
+ export async function queryRmbForecastDetail(
215
+ payload: RmbForecastDetailPayload,
216
+ ): Promise<RmbForecastDetailResult> {
217
+ return tamRequest<RmbForecastDetailBody, RmbForecastDetailRecord>(payload)
218
+ }
219
+
127
220
  function normalizeDate(value: string) {
128
221
  // 日期选择器产出 YYYY-MM-DD;接口需要 YYYYMMDD。
129
222
  if (/^\d{8}$/.test(value)) return value
@@ -21,6 +21,7 @@ export function getUserInfoApi(id: number) {
21
21
  export function getOrgByUserNameApi(username: string) {
22
22
  return request<UserOrg[]>({
23
23
  url: '/uaa/user/getOrgByUserName',
24
+ method: 'POST',
24
25
  params: {
25
26
  username,
26
27
  },
@@ -0,0 +1,216 @@
1
+ <script setup lang="ts">
2
+ defineOptions({ name: 'AnnouncementTitleBar' })
3
+
4
+ withDefaults(
5
+ defineProps<{
6
+ title?: string
7
+ showBack?: boolean
8
+ backAriaLabel?: string
9
+ }>(),
10
+ {
11
+ title: '公告',
12
+ showBack: true,
13
+ backAriaLabel: '返回',
14
+ },
15
+ )
16
+
17
+ const emit = defineEmits<{
18
+ back: []
19
+ capsuleMore: []
20
+ capsuleClose: []
21
+ }>()
22
+ </script>
23
+
24
+ <template>
25
+ <header class="announcement-title-bar">
26
+ <div class="announcement-title-bar__inner">
27
+ <button
28
+ v-if="showBack"
29
+ class="announcement-title-bar__back"
30
+ type="button"
31
+ :aria-label="backAriaLabel"
32
+ @click="emit('back')"
33
+ >
34
+ <van-icon name="arrow-left" />
35
+ </button>
36
+
37
+ <h1 class="announcement-title-bar__title">{{ title }}</h1>
38
+
39
+ <div class="announcement-title-bar__capsule" role="group" aria-label="页面操作">
40
+ <button
41
+ class="announcement-title-bar__capsule-btn"
42
+ type="button"
43
+ aria-label="更多"
44
+ @click="emit('capsuleMore')"
45
+ >
46
+ <span class="announcement-title-bar__dots" aria-hidden="true">
47
+ <i></i>
48
+ <i></i>
49
+ <i></i>
50
+ </span>
51
+ </button>
52
+ <span class="announcement-title-bar__divider" aria-hidden="true"></span>
53
+ <button
54
+ class="announcement-title-bar__capsule-btn"
55
+ type="button"
56
+ aria-label="关闭"
57
+ @click="emit('capsuleClose')"
58
+ >
59
+ <span class="announcement-title-bar__circle" aria-hidden="true"></span>
60
+ </button>
61
+ </div>
62
+ </div>
63
+ </header>
64
+ </template>
65
+
66
+ <style scoped>
67
+ .announcement-title-bar {
68
+ position: sticky;
69
+ top: 0;
70
+ z-index: 20;
71
+ width: 100%;
72
+ height: calc(50px + env(safe-area-inset-top));
73
+ padding-top: env(safe-area-inset-top);
74
+ color: #171b20;
75
+ background: rgba(247, 248, 250, 0.96);
76
+ backdrop-filter: blur(12px);
77
+ box-sizing: border-box;
78
+ }
79
+
80
+ .announcement-title-bar__inner {
81
+ position: relative;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ width: 100%;
86
+ max-width: 750px;
87
+ height: 50px;
88
+ margin: 0 auto;
89
+ padding: 0 10px;
90
+ box-sizing: border-box;
91
+ }
92
+
93
+ .announcement-title-bar__back,
94
+ .announcement-title-bar__capsule-btn {
95
+ border: 0;
96
+ padding: 0;
97
+ font: inherit;
98
+ background: transparent;
99
+ appearance: none;
100
+ cursor: pointer;
101
+ }
102
+
103
+ .announcement-title-bar__back {
104
+ position: absolute;
105
+ left: 10px;
106
+ top: 50%;
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ width: 36px;
111
+ height: 36px;
112
+ border-radius: 50%;
113
+ color: #171b20;
114
+ font-size: 22px;
115
+ transform: translateY(-50%);
116
+ }
117
+
118
+ .announcement-title-bar__back:active {
119
+ background: rgba(23, 27, 32, 0.06);
120
+ }
121
+
122
+ .announcement-title-bar__title {
123
+ position: absolute;
124
+ left: 106px;
125
+ right: 106px;
126
+ margin: 0;
127
+ overflow: hidden;
128
+ color: #171b20;
129
+ font-size: 17px;
130
+ font-weight: 700;
131
+ line-height: 1.2;
132
+ text-align: center;
133
+ text-overflow: ellipsis;
134
+ white-space: nowrap;
135
+ pointer-events: none;
136
+ }
137
+
138
+ .announcement-title-bar__capsule {
139
+ position: absolute;
140
+ right: 10px;
141
+ top: 50%;
142
+ display: flex;
143
+ align-items: center;
144
+ width: 88px;
145
+ height: 32px;
146
+ overflow: hidden;
147
+ border: 1px solid rgba(23, 27, 32, 0.12);
148
+ border-radius: 999px;
149
+ background: rgba(255, 255, 255, 0.82);
150
+ box-shadow:
151
+ 0 6px 18px rgba(23, 27, 32, 0.08),
152
+ inset 0 0 0 0.5px rgba(255, 255, 255, 0.82);
153
+ backdrop-filter: blur(10px);
154
+ transform: translateY(-50%);
155
+ }
156
+
157
+ .announcement-title-bar__capsule-btn {
158
+ display: flex;
159
+ align-items: center;
160
+ justify-content: center;
161
+ width: 43px;
162
+ height: 100%;
163
+ color: #171b20;
164
+ }
165
+
166
+ .announcement-title-bar__capsule-btn:active {
167
+ background: rgba(23, 27, 32, 0.06);
168
+ }
169
+
170
+ .announcement-title-bar__divider {
171
+ width: 1px;
172
+ height: 18px;
173
+ background: rgba(23, 27, 32, 0.12);
174
+ }
175
+
176
+ .announcement-title-bar__dots {
177
+ display: flex;
178
+ align-items: center;
179
+ gap: 4px;
180
+ }
181
+
182
+ .announcement-title-bar__dots i {
183
+ width: 4px;
184
+ height: 4px;
185
+ border-radius: 50%;
186
+ background: #171b20;
187
+ }
188
+
189
+ .announcement-title-bar__circle {
190
+ position: relative;
191
+ width: 18px;
192
+ height: 18px;
193
+ border: 2px solid #171b20;
194
+ border-radius: 50%;
195
+ box-sizing: border-box;
196
+ }
197
+
198
+ .announcement-title-bar__circle::after {
199
+ position: absolute;
200
+ left: 50%;
201
+ top: 50%;
202
+ width: 6px;
203
+ height: 6px;
204
+ border-radius: 50%;
205
+ background: #171b20;
206
+ content: '';
207
+ transform: translate(-50%, -50%);
208
+ }
209
+
210
+ @media (max-width: 360px) {
211
+ .announcement-title-bar__title {
212
+ left: 58px;
213
+ right: 106px;
214
+ }
215
+ }
216
+ </style>
@@ -11,6 +11,7 @@ export {}
11
11
  /* prettier-ignore */
12
12
  declare module 'vue' {
13
13
  export interface GlobalComponents {
14
+ AnnouncementTitleBar: typeof import('./components/AnnouncementTitleBar.vue')['default']
14
15
  RouterLink: typeof import('vue-router')['RouterLink']
15
16
  RouterView: typeof import('vue-router')['RouterView']
16
17
  VanButton: typeof import('vant/es')['Button']
@@ -25,6 +26,7 @@ declare module 'vue' {
25
26
  VanLoading: typeof import('vant/es')['Loading']
26
27
  VanPopup: typeof import('vant/es')['Popup']
27
28
  VanSearch: typeof import('vant/es')['Search']
29
+ VanSwitch: typeof import('vant/es')['Switch']
28
30
  VanTabbar: typeof import('vant/es')['Tabbar']
29
31
  VanTabbarItem: typeof import('vant/es')['TabbarItem']
30
32
  }
@@ -1,6 +1,6 @@
1
1
  app_id=vue_demo;
2
- version_code=10001;
3
- version_name=1.0.0.01;
2
+ version_code=10002;
3
+ version_name=1.0.0.02;
4
4
  type=html5;
5
5
  frame=vue;
6
6
  platform=[mac,win,ios,android];
@@ -22,6 +22,18 @@ const router = createRouter({
22
22
  component: () => import('@/views/rmb-position/index.vue'),
23
23
  meta: { requiresAuth: true, hideTabbar: true },
24
24
  },
25
+ {
26
+ path: '/rmb-position/new',
27
+ name: 'RmbPositionCreate',
28
+ component: () => import('@/views/rmb-position-create/index.vue'),
29
+ meta: { requiresAuth: true, hideTabbar: true },
30
+ },
31
+ {
32
+ path: '/rmb-position/:predRefNo',
33
+ name: 'RmbPositionDetail',
34
+ component: () => import('@/views/rmb-position-detail/index.vue'),
35
+ meta: { requiresAuth: true, hideTabbar: true },
36
+ },
25
37
  {
26
38
  path: '/foreign-position',
27
39
  name: 'ForeignPosition',
@@ -32,7 +44,7 @@ const router = createRouter({
32
44
  path: '/pbc-position',
33
45
  name: 'PbcPosition',
34
46
  component: () => import('@/views/pbc-position/index.vue'),
35
- meta: { requiresAuth: true },
47
+ meta: { requiresAuth: true, hideTabbar: true },
36
48
  },
37
49
  {
38
50
  path: '/position-estimate',
@@ -88,6 +100,12 @@ const router = createRouter({
88
100
  component: () => import('@/views/mine/index.vue'),
89
101
  meta: { requiresAuth: true },
90
102
  },
103
+ {
104
+ path: '/settings',
105
+ name: 'Settings',
106
+ component: () => import('@/views/settings/index.vue'),
107
+ meta: { requiresAuth: true, hideTabbar: true },
108
+ },
91
109
  ],
92
110
  })
93
111
 
@@ -4,21 +4,37 @@ import { waitNativeReady } from '@/core/mxApi'
4
4
  /**
5
5
  * 应用级状态 Store
6
6
  *
7
- * 存放全局共享的运行时状态,不持久化。
7
+ * 存放全局共享的运行时状态,应用设置通过 persistedstate 持久化。
8
8
  * initNativeDetection 在 main.ts 挂载前调用,组件读取时值已就绪。
9
9
  */
10
- export const useAppStore = defineStore('app', () => {
11
- /** 是否在原生 APP WebView 环境中 */
12
- const isNative = ref(false)
10
+ export const useAppStore = defineStore(
11
+ 'app',
12
+ () => {
13
+ /** 是否在原生 APP WebView 环境中 */
14
+ const isNative = ref(false)
13
15
 
14
- /**
15
- * 初始化原生环境检测
16
- *
17
- * 等待敏行宿主注入完成后判断当前运行环境。
18
- */
19
- async function initNativeDetection() {
20
- isNative.value = await waitNativeReady()
21
- }
16
+ /** 是否在底部导航中显示公告入口 */
17
+ const showAnnouncementTab = ref(false)
22
18
 
23
- return { isNative, initNativeDetection }
24
- })
19
+ /**
20
+ * 初始化原生环境检测
21
+ *
22
+ * 等待敏行宿主注入完成后判断当前运行环境。
23
+ */
24
+ async function initNativeDetection() {
25
+ isNative.value = await waitNativeReady()
26
+ }
27
+
28
+ function setShowAnnouncementTab(value: boolean) {
29
+ showAnnouncementTab.value = value
30
+ }
31
+
32
+ return { isNative, showAnnouncementTab, initNativeDetection, setShowAnnouncementTab }
33
+ },
34
+ {
35
+ persist: {
36
+ key: 'mini2_app_settings',
37
+ pick: ['showAnnouncementTab'],
38
+ },
39
+ },
40
+ )
@@ -20,7 +20,7 @@ export const useUserStore = defineStore(
20
20
  // -------------------------------- State --------------------------------
21
21
 
22
22
  /** 登录凭证,登录成功后由后端返回,后续请求通过请求头携带 */
23
- const token = ref('')
23
+ const token = ref('1')
24
24
  const refreshToken = ref('')
25
25
  const username = ref('')
26
26
  const realName = ref('')