Sfoglia il codice sorgente

Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev

liaofei 2 anni fa
parent
commit
7ef393eb55

+ 1 - 1
template/admin/src/pages/setting/devise/diyIndex.vue

@@ -418,7 +418,7 @@ export default {
             // this.saveConfig();
             this.$Modal.remove();
             window.close();
-          }, 1500);
+          }, 1000);
         },
         onCancel: () => {
           this.$Modal.remove();

+ 17 - 6
template/admin/src/pages/setting/devise/list.vue

@@ -37,7 +37,15 @@
                 <Row type="flex">
                   <Col v-bind="grid">
                     <div class="button acea-row row-middle">
-                      <Button type="primary" icon="md-add" @click="add">添加专题页</Button>
+                      <Button type="primary" icon="md-add"
+                        ><a
+                          class="target-add"
+                          ref="target"
+                          :href="`${url}${$routeProStr}/setting/pages/diy_index?id=0&name=首页&type=0`"
+                          target="_blank"
+                          >添加专题页
+                        </a></Button
+                      >
                     </div>
                   </Col>
                 </Row>
@@ -428,10 +436,10 @@ export default {
     // },
     // 添加
     add() {
-      this.$router.push({
-        path: this.$routeProStr + '/setting/pages/diy_index',
-        query: { id: 0, name: '首页', type: 1 },
-      });
+      // this.$router.push({
+      //   path: this.$routeProStr + '/setting/pages/diy_index',
+      //   query: { id: 0, name: '首页', type: 1 },
+      // });
     },
     // 删除
     del(row) {
@@ -500,7 +508,10 @@ export default {
   border-radius: 10px;
   border: 1px solid #eee;
 }
-
+.target-add{
+  text-decoration: none;
+  color #fff
+}
 .mask {
   position: absolute;
   left: 0;