@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.8.3",
3
+ "version": "5.8.4",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 = __Root;
257
+ location.href = this.siteRoot;
254
258
  }
255
259
  })
256
260
  .then(() => {