From d37541d1add157b57accf041bf4b8d5754278013 Mon Sep 17 00:00:00 2001 From: lizhong Date: Wed, 29 Mar 2023 08:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=A1=B5=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=8C=89=E9=92=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=88=B0?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E9=A1=B5=E7=9A=84=E7=99=BB=E5=BD=95=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/inspectionProfiles/Project_Default.xml | 16 + .idea/vcs.xml | 6 + .idea/workspace.xml | 152 ++++++ assets/style/public.scss | 3 + components/Header/Index.vue | 113 +++- composables/useUserInfo.ts | 22 +- layouts/tabLayout.vue | 10 +- middleware/auth.ts | 16 + nuxt.config.ts | 3 +- pages/comment.vue | 4 +- pages/index.vue | 35 +- pages/translate.vue | 511 +++++++++++-------- pages/warning.vue | 6 +- utils/http.ts | 1 + 14 files changed, 625 insertions(+), 273 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 middleware/auth.ts diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..61743fe --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,16 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..dc3d2aa --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "keyToString": { + "RunOnceActivity.OpenProjectViewOnStart": "true", + "RunOnceActivity.ShowReadmeOnStart": "true", + "WebServerToolWindowFactoryState": "true", + "WebServerToolWindowPanel.toolwindow.highlight.mappings": "true", + "WebServerToolWindowPanel.toolwindow.highlight.symlinks": "true", + "WebServerToolWindowPanel.toolwindow.show.date": "false", + "WebServerToolWindowPanel.toolwindow.show.permissions": "false", + "WebServerToolWindowPanel.toolwindow.show.size": "false", + "last_opened_file_path": "/Users/lizhong/Desktop/workspace/ReptileFront/reptileFront_nuxt/assets/images", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "yarn", + "settings.editor.selected.configurable": "reference.settings.ide.settings.file-colors", + "ts.external.directory.path": "/Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/external", + "vue.rearranger.settings.migration": "true" + } +} + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file + diff --git a/pages/warning.vue b/pages/warning.vue index cb5856d..ad77ebd 100644 --- a/pages/warning.vue +++ b/pages/warning.vue @@ -35,6 +35,7 @@ :pages="pagesRef" @change="onChangePage" /> + @@ -43,7 +44,7 @@ import dayjs from "dayjs"; import {randomUUID} from '~~/utils'; - +import {onClickOutside} from "@vueuse/core"; definePageMeta({ name: '预警信息', headerHost: true, @@ -53,6 +54,9 @@ useHead({ title:'预警信息' }) +onClickOutside(ref, ()=>{ + +}) const { warningApi } = useApi() const {prefixCls} = useDesign('mai-wrap'); const {setTotal, current, total, setCurrentPage, limit, pagesRef} = usePagination(1, 4, 0) diff --git a/utils/http.ts b/utils/http.ts index 862ba2d..5a8dce6 100644 --- a/utils/http.ts +++ b/utils/http.ts @@ -27,6 +27,7 @@ function transform(error: any) { } } +console.log($fetch) /** * api请求封装 * @param { String } url 请求地址