wujingjing
2024-08-29 fe25566c53e2c5ac9c8a9e3b262a0affda53328a
Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.Admin.V1.0
已修改3个文件
已添加1个文件
50 ■■■■■ 文件已修改
customer_list/yw/static/config/route.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/login/UserMenuData.ts 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.ts 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/yw/knowledge/Graph.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/yw/static/config/route.js
@@ -13,4 +13,11 @@
        path: '/lowCode/sqlAmis',
        component: '/project/yw/lowCode/sqlAmis/SqlAmis.vue',
    },
    {
        name: 'Graph',
        isKeepAlive: true,
        isAffix: false,
        path: '/knowledge/graph',
        component: '/project/yw/knowledge/Graph.vue',
    },
];
src/api/login/UserMenuData.ts
@@ -48,4 +48,36 @@
            },
        ],
    },
    {
        ID: '1742436890822447105',
        ParentID: '0',
        Type: 1,
        Name: '数据管理',
        Path: '',
        Permission: '',
        Icon: 'ele-Memo',
        IsIframe: false,
        OutLink: '',
        IsHide: false,
        Weight: 0,
        SortCode: 1,
        Description: '',
        Children: [
            {
                Children: [],
                ID: '1',
                ParentID: '1742436890822447105',
                Type: 2,
                Name: '数据列表',
                Path: '/knowledge/graph',
                Permission: '',
                Icon: 'ywifont ywicon-a-appround15',
                IsIframe: true,
                IsHide: false,
                Weight: 0,
                SortCode: 2,
                Description: '',
            },
        ],
    },
];
src/utils/request.ts
@@ -44,7 +44,7 @@
    // å¢žåŠ loading å¦‚æžœpending请求数量等于1,弹出loading, é˜²æ­¢é‡å¤å¼¹å‡º
    requestNum++;
    if (requestNum == 1) {
         loadingInstance = ElLoadingService({
        loadingInstance = ElLoadingService({
            text: '加载中...',
            target: '.layout-parent',
        });
@@ -61,6 +61,7 @@
    // æ·»åŠ è¯·æ±‚æ‹¦æˆªå™¨
    request.interceptors.request.use(
        (config) => {
            console.log('🚀 ~ config:', config);
            // èŽ·å–æœ¬åœ°çš„ token
            const accessSession = Local.get(accessSessionKey);
            const { loading = true, noAuth = false, handleFail = true } = config as ExtraConfig;
@@ -72,7 +73,7 @@
                config.headers['hswatersession'] = accessSession;
            }
            if (!noAuth) {
                if (!accessSession ) {
                if (!accessSession) {
                    handleNoAuth();
                }
            }
@@ -111,7 +112,7 @@
                switch (serveData?.err_code) {
                    case ErrorCode.Auth:
                        handleNoAuth();
                            throw '权限验证失败';
                        throw '权限验证失败';
                        break;
                    case ErrorCode.Exception:
                        ElMessage.error('内部错误!');
src/views/project/yw/knowledge/Graph.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,4 @@
<template><div>123</div></template>
<script setup lang="ts"></script>
<style scoped lang="scss"></style>