wu 1 nedēļu atpakaļ
vecāks
revīzija
4098ef379b

+ 1 - 1
src/views/api/apimanage.vue

@@ -258,7 +258,7 @@ export default {
         let {records, total} = res.data;
         records.forEach(item => {
           if (item.apiType == 1 || item.apiType == 3) {
-            item.apiUrl =  prefix + item.apiUrl;
+            item.apiUrl =  item.apiUrl;
           }
         });
         this.tableData = records;

+ 1 - 1
src/views/api/apisql.vue

@@ -657,7 +657,7 @@ export default {
           this.showPush = true;
           this.pushFrom = {
             name: this.form.apiName, //接口名称
-            url: location.protocol + '//' + location.host  + '/etl-api' + this.form.apiUrl, //接口地址
+            url: location.protocol + '//' + location.host  + '/data-api' + this.form.apiUrl, //接口地址
             callLimit: 10000, //调用次数
             qpsLimit: 2, //qps限制
             status: this.form.apiStatus, //状态

+ 1 - 1
src/views/api/detail.vue

@@ -275,7 +275,7 @@ export default {
   data() {
     return {
       // 当前域名
-      domain: 'https://windata.platomix.net/api-cgi/cgi',
+      domain: 'https://windata.platomix.net/api-cgi',
       id: 0,
       activeName: 'a1',
       headerData: [

+ 2 - 1
src/views/devbase/app/apilist.vue

@@ -442,7 +442,7 @@ export default {
       params.append('description', this.addForm.description)
       applyInsertApi(params).then(res => {
         this.addFormVisible = false
-        if (res.data.code !== 10000) {
+        if (res.code !== 10000) {
           this.$message.error(res.data.message)
           return
         }
@@ -450,6 +450,7 @@ export default {
           message: '申请成功',
           type: 'success'
         })
+        this.applist()
       })
     },
     // 申请开发

+ 1 - 1
src/views/devbase/app/applistdetail.vue

@@ -275,7 +275,7 @@ export default {
   data() {
     return {
       // 当前域名
-      domain: 'https://windata.platomix.net/api-cgi/cgi',
+      domain: 'https://windata.platomix.net/api-cgi',
       id: 0,
       activeName: 'a1',
       headerData: [