Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.Admin.V1.0
| | |
| | | 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', |
| | | }, |
| | | ]; |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | 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: '', |
| | | }, |
| | | ], |
| | | }, |
| | | ]; |
| | |
| | | // å¢å loading 妿pendingè¯·æ±æ°éçäº1ï¼å¼¹åºloading, 鲿¢éå¤å¼¹åº |
| | | requestNum++; |
| | | if (requestNum == 1) { |
| | | loadingInstance = ElLoadingService({ |
| | | loadingInstance = ElLoadingService({ |
| | | text: 'å è½½ä¸...', |
| | | target: '.layout-parent', |
| | | }); |
| | |
| | | // æ·»å è¯·æ±æ¦æªå¨ |
| | | 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; |
| | |
| | | config.headers['hswatersession'] = accessSession; |
| | | } |
| | | if (!noAuth) { |
| | | if (!accessSession ) { |
| | | if (!accessSession) { |
| | | handleNoAuth(); |
| | | } |
| | | } |
| | |
| | | switch (serveData?.err_code) { |
| | | case ErrorCode.Auth: |
| | | handleNoAuth(); |
| | | throw 'æééªè¯å¤±è´¥'; |
| | | throw 'æééªè¯å¤±è´¥'; |
| | | break; |
| | | case ErrorCode.Exception: |
| | | ElMessage.error('å
é¨é误ï¼'); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template><div>123</div></template> |
| | | |
| | | <script setup lang="ts"></script> |
| | | <style scoped lang="scss"></style> |