diff --git a/src/main/resources/static/assets/platform/js/main.js b/src/main/resources/static/assets/platform/js/main.js index 00c9c29..20d0600 100644 --- a/src/main/resources/static/assets/platform/js/main.js +++ b/src/main/resources/static/assets/platform/js/main.js @@ -11,25 +11,25 @@ $.ajaxSetup({ contentType: "application/x-www-form-urlencoded;charset=utf-8", success: function (response, textStatus, jqXHR) { - if (response.code !== 0) { - this.$message.error(response.msg) + if (response && typeof response === "object" && response.code !== undefined && response.code !== 0) { + Vue.prototype.$message.error(response.msg) } else { return response } }, error: function (v1) { - this.$message.error(v1.status + " " + v1.statusText) + Vue.prototype.$message.error(v1.status + " " + v1.statusText) }, complete: function (XMLHttpRequest, textStatus) { var sessionstatus = XMLHttpRequest.getResponseHeader("loginStatus") //通过XMLHttpRequest取得响应头,sessionstatus, if (sessionstatus == "accessDenied") { - this.$message({ + Vue.prototype.$message({ message: "\u767b\u5f55\u5931\u6548\uff0c\u8bf7\u5237\u65b0\u9875\u9762\u91cd\u65b0\u767b\u5f55", type: "error" }) } if (sessionstatus == "unauthorized") { - this.$message({ + Vue.prototype.$message({ message: "\u6ca1\u6709\u6743\u9650", type: "error" }) diff --git a/src/main/resources/static/components/module/activity/DrawerUserScope.vue b/src/main/resources/static/components/module/activity/DrawerUserScope.vue index 70839c1..dd6cc69 100644 --- a/src/main/resources/static/components/module/activity/DrawerUserScope.vue +++ b/src/main/resources/static/components/module/activity/DrawerUserScope.vue @@ -4,7 +4,7 @@
返回
- +