Forráskód Böngészése

feat: 关键词组新增编辑表单新窗口打开

cuiyalong 1 éve
szülő
commit
5efd72635c

+ 1 - 1
src/views/sales/keywordsSettingEdit.vue

@@ -190,7 +190,7 @@ export default {
         },
         submitSuccess() {
             this.$Message.success(`${this.titleKey}成功`)
-            this.$router.back()
+            // this.$router.back()
         },
         resetBaseForm() {
             const def = JSON.parse(JSON.stringify(this.defaultBaseForm))

+ 4 - 2
src/views/sales/keywordsSettingList.vue

@@ -333,17 +333,19 @@ export default {
             }).post()
         },
         toDetail(params) {
-            this.$router.push({
+            const path = this.$router.resolve({
                 path: '/sales/keywords/setting/edit',
                 query: {
                     id: params.row.id
                 }
             })
+            window.open(path.href, '_blank')
         },
         crateNewKeywordsGroup() {
-            this.$router.push({
+            const path = this.$router.resolve({
                 path: '/sales/keywords/setting/edit'
             })
+            window.open(path.href, '_blank')
         },
     }
 }