leisure-core 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/le-home/src/main.vue +2 -0
- package/le-libs/js/hrequest.js +4 -1
- package/le-login/src/main.vue +3 -1
- package/package.json +1 -1
package/le-home/src/main.vue
CHANGED
|
@@ -696,6 +696,8 @@ export default {
|
|
|
696
696
|
cancelButtonText: "取消",
|
|
697
697
|
type: "warning",
|
|
698
698
|
}).then(() => {
|
|
699
|
+
const userId = this.$store?.getters?.userinfo?.id ?? "";
|
|
700
|
+
this.$emit("signout", userId);
|
|
699
701
|
this.$router.push({ path: "/" });
|
|
700
702
|
localStorage.clear();
|
|
701
703
|
});
|
package/le-libs/js/hrequest.js
CHANGED
|
@@ -59,7 +59,10 @@ service.interceptors.response.use(
|
|
|
59
59
|
} else if (code !== "10000" || code == "803") {
|
|
60
60
|
console.log("请求失败,code和info分别为", code, info);
|
|
61
61
|
msg(info);
|
|
62
|
-
|
|
62
|
+
const error = new Error(info || "请求失败");
|
|
63
|
+
error.__businessError = true;
|
|
64
|
+
error.bizCode = code;
|
|
65
|
+
return Promise.reject(error);
|
|
63
66
|
} else {
|
|
64
67
|
return response;
|
|
65
68
|
}
|
package/le-login/src/main.vue
CHANGED