vue2-client 1.8.285 → 1.8.286

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": "vue2-client",
3
- "version": "1.8.285",
3
+ "version": "1.8.286",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -56,7 +56,7 @@ const loginGuard = (to, from, next, options) => {
56
56
  localStorage.setItem('SinglePage_TOKEN', token)
57
57
  startLogin({
58
58
  ...info,
59
- pathname: window.location.pathname,
59
+ pathname: window.location.pathname?.startsWith(process.env.VUE_APP_PUBLIC_PATH) ? window.location.pathname.replace(process.env.VUE_APP_PUBLIC_PATH, '') : window.location.pathname,
60
60
  store,
61
61
  router,
62
62
  })
@@ -111,6 +111,7 @@ function afterLogin (res, options) {
111
111
  result.functions.unshift(resourceManageMain)
112
112
  afterGeneral(result, options)
113
113
  setAccessToken(data)
114
+ indexedDB.clear()
114
115
  if (result.deps === '用户工单登记') {
115
116
  router.push(setting.ticketPage).catch(() => {
116
117
  })