@jx3box/jx3box-common-ui 5.8.3 → 5.8.4
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/package.json +1 -1
- package/src/header/user.vue +5 -1
package/package.json
CHANGED
package/src/header/user.vue
CHANGED
|
@@ -116,6 +116,7 @@ import {
|
|
|
116
116
|
__Links,
|
|
117
117
|
__Root,
|
|
118
118
|
__imgPath,
|
|
119
|
+
__OriginRoot,
|
|
119
120
|
} from "@jx3box/jx3box-common/data/jx3box.json";
|
|
120
121
|
import panel from "../../assets/data/panel.json";
|
|
121
122
|
import { getMsg, getMenu } from "../../service/header";
|
|
@@ -203,6 +204,9 @@ export default {
|
|
|
203
204
|
super_author_icon: function () {
|
|
204
205
|
return __imgPath + "image/user/" + "superauthor.svg";
|
|
205
206
|
},
|
|
207
|
+
siteRoot : function (){
|
|
208
|
+
return location.host.includes('origin') ? __OriginRoot : __Root
|
|
209
|
+
}
|
|
206
210
|
},
|
|
207
211
|
watch: {
|
|
208
212
|
fold(val) {
|
|
@@ -250,7 +254,7 @@ export default {
|
|
|
250
254
|
.then((res) => {
|
|
251
255
|
this.isLogin = false;
|
|
252
256
|
if (location.pathname.startsWith('/dashboard') || location.pathname.startsWith('/publish')) {
|
|
253
|
-
location.href =
|
|
257
|
+
location.href = this.siteRoot;
|
|
254
258
|
}
|
|
255
259
|
})
|
|
256
260
|
.then(() => {
|