li.shaoyi 3 роки тому
батько
коміт
662c444870

+ 1 - 1
src/hooks/menu/index.ts

@@ -75,7 +75,7 @@ export function useMenu(authCode?: string) {
     const getAuth = (authType: AuthType) => {
         const children = findChildren(userMenus.value, authCode)
         return children.reduce((res, cur) => {
-            if (cur.authType === authType) {
+            if (!cur.hidden && cur.authType === authType) {
                 if (!componentMap.get(cur.code) && cur.component) {
                     const componentString = cur.component.replace(/^\/+/, '') // 过滤字符串前面所有 '/' 字符
                     const componentPath = componentString.replace(/\.\w+$/, '') // 过滤后缀名,为了让 import 加入 .vue ,不然会有警告提示...

+ 2 - 2
src/packages/mobile/views/boot/index.vue

@@ -38,7 +38,7 @@ const state = reactive({
 })
 
 // 初始化数据
-const loadData = (async () => {
+const onLoad = (async () => {
   // 等待服务初始化
   await service.onReady()
   // 等待连接交易服务
@@ -56,7 +56,7 @@ const autoLogin = async (loading = false) => {
     plus.exitFullSreen()
   }
 
-  await loadData.catch(() => {
+  await onLoad.catch(() => {
     complete()
     router.replace({ name: 'UserLogin' })
   })

+ 1 - 1
src/packages/mobile/views/contract/details/index.vue

@@ -25,7 +25,7 @@
                         <span>{{ tableList[0].tradeprice.toFixed(2) }}</span>
                     </template>
                 </Field>
-                <Field label="原定金价" v-if="tableList.length">
+                <Field label="预付金" v-if="tableList.length">
                     <template #input>
                         <span>{{ (tableList[0].tradeprice * selectedRate).toFixed(2) }}</span>
                     </template>