Browse Source

更新平台选择接口

306132416@qq.com 4 years ago
parent
commit
a012f2ab97
1 changed files with 27 additions and 14 deletions
  1. 27 14
      src/components/Modal.vue

+ 27 - 14
src/components/Modal.vue

@@ -582,21 +582,34 @@ export default {
     },
     //发布版块
     chooseReleasePlate: function (val) {
-      this.$http({
-        url: "/base/publishPlatformManager/selectPublishPlatformList",
-        method: "post",
-        data: {
-          parentId: val,
-        },
-      })
-        .then((res) => {
-          if (res.data.code === 200) {
-            this.releasePlate = res.data.data;
-          }
-        })
-        .catch((err) => {
-          console.log(err);
+        axiosPhp({
+            method: "post",
+            url: php_url + this.unifiedUrl +"publish_platform_list.php",
+            data: {parentId: val,},
+        }).then((res) => {
+            if (res.data && res.data.code === 200) {
+                this.releasePlate = res.data.data;
+            }
+        }).catch((err) => {
+            console.log(err);
         });
+
+
+      // this.$http({
+      //   url: "/base/publishPlatformManager/selectPublishPlatformList",
+      //   method: "post",
+      //   data: {
+      //     parentId: val,
+      //   },
+      // })
+      //   .then((res) => {
+      //     if (res.data.code === 200) {
+      //       this.releasePlate = res.data.data;
+      //     }
+      //   })
+      //   .catch((err) => {
+      //     console.log(err);
+      //   });
     },
   },
   mounted() {