panlinlin
2021-04-12 4010ed6c23d081a2937d0fe1719414ba127b17a2
web_src/src/components/ParentPlatformList.vue
@@ -121,8 +121,10 @@
    },
    deletePlatformCommit: function(platform) {
        var that = this;
        that.$axios.delete(`/api/platform/delete/${platform.serverGBId}`)
            .then(function (res) {
        that.$axios({
               method: 'delete',
               url:`/api/platform/delete/${platform.serverGBId}`
        }).then(function (res) {
                if (res.data == "success") {
                    that.$message({
                        showClose: true,
@@ -131,8 +133,7 @@
                    });
                    that.initData()
                }
            })
            .catch(function (error) {
        }).catch(function (error) {
                console.log(error);
            });
    },
@@ -155,12 +156,13 @@
    getPlatformList: function() {
      let that = this;
      this.$axios.get(`/api/platform/query/${that.count}/${that.currentPage}`)
        .then(function (res) {
      this.$axios({
               method: 'get',
               url:`/api/platform/query/${that.count}/${that.currentPage}`
      }).then(function (res) {
          that.total = res.data.total;
          that.platformList = res.data.list;
        })
        .catch(function (error) {
      }).catch(function (error) {
          console.log(error);
        });