DESKTOP-O04BTUJ\muzen 2 年之前
父节点
当前提交
ebd646195f
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      src/mixin/index.js

+ 12 - 2
src/mixin/index.js

@@ -364,7 +364,12 @@ const addressMixin = {
     getAddress() {
       options(2).then(res => {
         if (res.code === 0) {
-          this.addressOptions = res.data
+          res.data.map(i => {
+            this.addressOptions.push({
+              value: i.id,
+              label: i.name
+            })
+          })
         }
       })
     }
@@ -385,7 +390,12 @@ const contentMixin = {
     getContent() {
       options(1).then(res => {
         if (res.code === 0) {
-          this.contentOptions = res.data
+          res.data.map(i => {
+            this.contentOptions.push({
+              value: i.id,
+              label: i.name
+            })
+          })
         }
       })
     }