Explorar o código

fix管理后台的控制台报错

star7th %!s(int64=8) %!d(string=hai) anos
pai
achega
8ec0413ad4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,