Showing
3 changed files
with
5 additions
and
7 deletions
| ... | @@ -41,7 +41,7 @@ declare module '@vue/runtime-core' { | ... | @@ -41,7 +41,7 @@ declare module '@vue/runtime-core' { |
| 41 | RuleField: typeof import('./src/components/RuleField/index.vue')['default'] | 41 | RuleField: typeof import('./src/components/RuleField/index.vue')['default'] |
| 42 | SignField: typeof import('./src/components/SignField/index.vue')['default'] | 42 | SignField: typeof import('./src/components/SignField/index.vue')['default'] |
| 43 | TableField: typeof import('./src/components/TableField/index.vue')['default'] | 43 | TableField: typeof import('./src/components/TableField/index.vue')['default'] |
| 44 | - Test: typeof import('./src/components/VideoField/test.vue')['default'] | 44 | + Test: typeof import('./src/components/LoginBox/test.vue')['default'] |
| 45 | TextareaField: typeof import('./src/components/TextareaField/index.vue')['default'] | 45 | TextareaField: typeof import('./src/components/TextareaField/index.vue')['default'] |
| 46 | TextField: typeof import('./src/components/TextField/index.vue')['default'] | 46 | TextField: typeof import('./src/components/TextField/index.vue')['default'] |
| 47 | TimePickerField: typeof import('./src/components/TimePickerField/index.vue')['default'] | 47 | TimePickerField: typeof import('./src/components/TimePickerField/index.vue')['default'] | ... | ... |
| ... | @@ -87,12 +87,10 @@ onMounted(async () => { | ... | @@ -87,12 +87,10 @@ onMounted(async () => { |
| 87 | if (data.length) { | 87 | if (data.length) { |
| 88 | Object.assign(form_setting, data[0]['property_list'], data[0]['extend']); | 88 | Object.assign(form_setting, data[0]['property_list'], data[0]['extend']); |
| 89 | } | 89 | } |
| 90 | - // TODO: 接口返回请求权限 | ||
| 91 | - // form_setting.no_auth = true; | ||
| 92 | // 缓存表单设置 | 90 | // 缓存表单设置 |
| 93 | store.changeFormSetting(form_setting); | 91 | store.changeFormSetting(form_setting); |
| 94 | - // TODO: 跳转 | 92 | + // 跳转未授权页 |
| 95 | - if (form_setting.no_auth) { | 93 | + if (form_setting.auth_error) { // 权限报错信息存在 |
| 96 | $router.replace({ | 94 | $router.replace({ |
| 97 | path: '/no_auth', | 95 | path: '/no_auth', |
| 98 | query: { | 96 | query: { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-06-29 18:18:02 | 2 | * @Date: 2022-06-29 18:18:02 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-06-25 13:45:27 | 4 | + * @LastEditTime: 2024-06-28 09:57:57 |
| 5 | * @FilePath: /data-table/src/views/no_auth.vue | 5 | * @FilePath: /data-table/src/views/no_auth.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | <div class="text-box"> | 10 | <div class="text-box"> |
| 11 | <van-icon name="warning" color="red" size="1.25rem" /> 您暂无权限访问该页面 | 11 | <van-icon name="warning" color="red" size="1.25rem" /> 您暂无权限访问该页面 |
| 12 | </div> | 12 | </div> |
| 13 | - <div>{{ formSetting }}</div> | 13 | + <div>{{ formSetting.auth_error }}</div> |
| 14 | </div> | 14 | </div> |
| 15 | </template> | 15 | </template> |
| 16 | 16 | ... | ... |
-
Please register or login to post a comment