Răsfoiți Sursa

系统指引页面和首页常用自选点击数据新标签页开启

cyy 3 săptămâni în urmă
părinte
comite
e1c08ed637

+ 2 - 1
src/views/system/dashboard/components/util.js

@@ -465,7 +465,8 @@ export function buildComponent(name, column, preview, vm) {
             this.$message.warning('未找到对应菜单路径,请检查资源配置或权限!')
             return
           }
-          this.$router.push('/' + pagePath)
+          const routeData = this.$router.resolve('/' + pagePath)
+          window.open(routeData.href, '_blank')
         },
         formatParameters(data) {
           if (this.$utils.isEmpty(data)) {

+ 3 - 4
src/views/system/dashboard/templates/systemGuide.vue

@@ -387,7 +387,8 @@ export default {
         this.$message.warning('未找到对应菜单路径,请检查资源配置或权限!')
         return
       }
-      this.$router.push('/' + pagePath)
+      const routeData = this.$router.resolve('/' + pagePath)
+      window.open(routeData.href, '_blank')
     },
     handleCollectClick(row) {
       if (!this.isSetting) return
@@ -398,9 +399,7 @@ export default {
       this.loading = true
       try {
         // 以原收藏为基础,叠加本次勾选变更,避免分页/筛选导致漏写
-        const formIdSet = new Set(
-          this.collectFormIds.map((id) => String(id))
-        )
+        const formIdSet = new Set(this.collectFormIds.map((id) => String(id)))
         Object.entries(this.collectChanges).forEach(([id, collected]) => {
           if (collected) {
             formIdSet.add(String(id))