DESKTOP-SVI9JE1\muzen 1 year ago
parent
commit
9bd30f23b6
1 changed files with 3 additions and 6 deletions
  1. 3 6
      src/mixin/index.js

+ 3 - 6
src/mixin/index.js

@@ -469,7 +469,7 @@ const addressMixin = {
   },
   methods: {
     getAddress() {
-      options(2).then(res => {
+      options({type: 2}).then(res => {
         if (res.code === 0) {
           res.data.map(i => {
             this.addressOptions.push({
@@ -490,12 +490,9 @@ const contentMixin = {
       contentOptions: []
     }
   },
-  mounted() {
-    this.getContent()
-  },
   methods: {
-    getContent() {
-      options(1).then(res => {
+    getContent(data) {
+      options(data).then(res => {
         if (res.code === 0) {
           res.data.map(i => {
             this.contentOptions.push({