From aa607d135c74530c7e2e7071273026dc7006daaf Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 20 Nov 2024 10:43:07 +0800 Subject: [PATCH 01/10] update .env.staging --- ruoyi-ui/.env.staging | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruoyi-ui/.env.staging b/ruoyi-ui/.env.staging index a47af9a21..730af3426 100644 --- a/ruoyi-ui/.env.staging +++ b/ruoyi-ui/.env.staging @@ -1,6 +1,8 @@ # 页面标题 VUE_APP_TITLE = 若依管理系统 +BABEL_ENV = production + NODE_ENV = production # 测试环境配置 From 08f4b877ce42c996f5dcb09e0b738bb6e9e1faa4 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 20 Nov 2024 11:13:24 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/HeaderSearch/index.vue | 8 +++---- ruoyi-ui/src/components/TopNav/index.vue | 8 +++---- ruoyi-ui/src/store/modules/user.js | 4 +++- ruoyi-ui/src/utils/validate.js | 22 +++++++++++++++++++ 4 files changed, 31 insertions(+), 11 deletions(-) diff --git a/ruoyi-ui/src/components/HeaderSearch/index.vue b/ruoyi-ui/src/components/HeaderSearch/index.vue index a01325a5b..5dd4ca9e4 100644 --- a/ruoyi-ui/src/components/HeaderSearch/index.vue +++ b/ruoyi-ui/src/components/HeaderSearch/index.vue @@ -22,6 +22,7 @@ // make search results more in line with expectations import Fuse from 'fuse.js/dist/fuse.min.js' import path from 'path' +import { isHttp } from '@/utils/validate' export default { name: 'HeaderSearch', @@ -72,7 +73,7 @@ export default { change(val) { const path = val.path; const query = val.query; - if(this.ishttp(val.path)) { + if(isHttp(val.path)) { // http(s):// 路径新窗口打开 const pindex = path.indexOf("http"); window.open(path.substr(pindex, path.length), "_blank"); @@ -115,7 +116,7 @@ export default { if (router.hidden) { continue } const data = { - path: !this.ishttp(router.path) ? path.resolve(basePath, router.path) : router.path, + path: !isHttp(router.path) ? path.resolve(basePath, router.path) : router.path, title: [...prefixTitle] } @@ -149,9 +150,6 @@ export default { } else { this.options = [] } - }, - ishttp(url) { - return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1 } } } diff --git a/ruoyi-ui/src/components/TopNav/index.vue b/ruoyi-ui/src/components/TopNav/index.vue index 86a91c4cf..f214245d3 100644 --- a/ruoyi-ui/src/components/TopNav/index.vue +++ b/ruoyi-ui/src/components/TopNav/index.vue @@ -33,6 +33,7 @@ diff --git a/ruoyi-ui/src/layout/components/TagsView/index.vue b/ruoyi-ui/src/layout/components/TagsView/index.vue index 1fc232352..44eff7d4e 100644 --- a/ruoyi-ui/src/layout/components/TagsView/index.vue +++ b/ruoyi-ui/src/layout/components/TagsView/index.vue @@ -133,11 +133,7 @@ export default { const { name } = this.$route if (name) { this.$store.dispatch('tagsView/addView', this.$route) - if (this.$route.meta.link) { - this.$store.dispatch('tagsView/addIframeView', this.$route) - } } - return false }, moveToCurrentTag() { const tags = this.$refs.tag