vue2-client 1.8.0-3 → 1.8.0-5

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.
@@ -1,9 +1,8 @@
1
1
  module.exports = {
2
- process() {
3
- return 'module.exports = {};';
2
+ process () {
3
+ return 'module.exports = {};'
4
4
  },
5
- getCacheKey() {
6
- return 'lessTransform';
5
+ getCacheKey () {
6
+ return 'lessTransform'
7
7
  },
8
- };
9
-
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.0-3",
3
+ "version": "1.8.0-5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
@@ -42,8 +42,8 @@ import { indexedDB } from '@vue2-client/utils/indexedDB'
42
42
 
43
43
  const loadComponents = (value) => {
44
44
  const component = {
45
- HeaderSearch: import('./HeaderSearch'),
46
- HeaderNotice: import('./HeaderNotice'),
45
+ HeaderSearch: import('@vue2-client/layouts/header/HeaderSearch'),
46
+ HeaderNotice: import('@vue2-client/layouts/header/HeaderNotice')
47
47
  }
48
48
  if (!value) {
49
49
  return component
@@ -5,8 +5,8 @@
5
5
  module.exports = {
6
6
  LOGIN: `/rs/logic/getLogin`,
7
7
  MODIFY_PASSWORD: '/rs/user/modifypwd',
8
- V4_LOGIN: '/auth/login',
9
- V4_LOGOUT: '/auth/logout',
8
+ V4_LOGIN: '/api/af-auth/login',
9
+ V4_LOGOUT: '/api/af-auth/logout',
10
10
  ROUTES: `/rs/user/userLogin`,
11
11
  SEARCH: `/rs/search`,
12
12
  GOODS: `/goods`,
@@ -5,6 +5,7 @@ import notification from 'ant-design-vue/es/notification'
5
5
  import errorCode from '@vue2-client/utils/errorCode'
6
6
  import qs from 'qs'
7
7
  import { logout } from '@vue2-client/services/user'
8
+ import { V4_LOGIN } from '@vue2-client/services/apiService'
8
9
 
9
10
  // 是否显示重新登录
10
11
  let isReloginShow
@@ -134,7 +135,7 @@ function loadInterceptors () {
134
135
  // 如果 token 存在
135
136
  // 让每个请求携带自定义 token 请根据实际情况自行修改
136
137
  if (token) {
137
- if (config.url !== '/auth/login') {
138
+ if (config.url !== V4_LOGIN) {
138
139
  // 判断是否为V4环境
139
140
  const compatible = getSystemVersion()
140
141
  if (compatible === 'V4') {
package/vue.config.js CHANGED
@@ -24,11 +24,6 @@ module.exports = {
24
24
  ws: false,
25
25
  changeOrigin: true
26
26
  },
27
- '/auth': {
28
- pathRewrite: { '^/auth/': '/rs/auth/' },
29
- target: local,
30
- changeOrigin: true
31
- },
32
27
  '/api': {
33
28
  pathRewrite: { '^/api/af-system/': '/rs/', '^/api/af-iot/': '/rs/' },
34
29
  // pathRewrite: { '^/api': '/' },