Browse Source

fix管理后台的控制台报错

star7th 7 years ago
parent
commit
8ec0413ad4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web_src/src/components/admin/Index.vue

+ 1 - 1
web_src/src/components/admin/Index.vue

@@ -144,7 +144,7 @@ export default {
           var params = new URLSearchParams();
           that.axios.post(url, params)
             .then(function (response) {
-              if (response.data.data.url) {
+              if (response && response.data && response.data.data && response.data.data.url) {
                   that.$message({
                     showClose: true,
                     duration:10000,