Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-24 17:19:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
388d026691ed1183a6277d8fc2c6223c408dff32
388d0266
1 parent
7ec53462
新增一个无权限跳转页面
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
2 deletions
src/App.vue
src/route.js
src/views/no_auth.vue
src/App.vue
View file @
388d026
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-2
0 17:40:51
* @LastEditTime: 2024-06-2
4 17:18:44
* @FilePath: /data-table/src/App.vue
* @Description:
-->
...
...
@@ -78,8 +78,16 @@ onMounted(async () => {
if (data.length) {
Object.assign(form_setting, data[0]['property_list'], data[0]['extend']);
}
// TODO: 接口返回请求权限
// form_setting.no_auth = true;
// 缓存表单设置
store.changeFormSetting(form_setting);
// TODO: 跳转
// if (form_setting.no_auth) {
// $router.replace({
// path: '/no_auth',
// });
// }
// 没有授权判断
let open_auth = form_setting.wxzq_enable && !form_setting.x_field_weixin_openid;
// iframe传值openid
...
...
src/route.js
View file @
388d026
/*
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
2-12-06 20:58:37
* @LastEditTime: 202
4-06-24 17:10:34
* @FilePath: /data-table/src/route.js
* @Description: 文件描述
*/
...
...
@@ -29,4 +29,10 @@ export default [{
meta
:
{
title
:
'授权页面'
,
}
},
{
path
:
'/no_auth'
,
component
:
()
=>
import
(
'@/views/no_auth.vue'
),
meta
:
{
title
:
'未授权页面'
,
}
}];
...
...
src/views/no_auth.vue
0 → 100644
View file @
388d026
<!--
* @Date: 2022-06-29 18:18:02
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-24 17:17:20
* @FilePath: /data-table/src/views/no_auth.vue
* @Description: 文件描述
-->
<template>
<div class="">未授权页面</div>
<div>{{ formSetting }}</div>
</template>
<script setup>
import { ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@/utils/generatePackage.js'
//import { } from '@/utils/generateModules.js'
//import { } from '@/utils/generateIcons.js'
//import { } from '@/composables'
const $route = useRoute();
const $router = useRouter();
useTitle($route.meta.title);
// 获取表单设置
const store = mainStore();
const { formSetting } = storeToRefs(store);
</script>
<style lang="less" scoped>
</style>
Please
register
or
login
to post a comment