vue2-client 1.4.50 → 1.4.51

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/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.4.51 -2022-11-13 @江超**
5
+ - 自定义路由名称
6
+
4
7
  **1.4.50 -2022-11-11 @江超**
5
8
  - footer自定义
6
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.50",
3
+ "version": "1.4.51",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -38,5 +38,7 @@ module.exports = {
38
38
  // 旧系统路径
39
39
  iframeSrc: '../singlepage/page.html',
40
40
  // 兼容旧版本 V3(最新V3产品) OA(公司OA)
41
- compatible: 'V3'
41
+ compatible: 'V3',
42
+ // 路由资源名称
43
+ routeName: '智慧燃气'
42
44
  }
@@ -75,7 +75,7 @@ export default {
75
75
  }
76
76
  },
77
77
  computed: {
78
- ...mapState('setting', ['systemName', 'systemDesc', 'homePage', 'ticketPage', 'compatible'])
78
+ ...mapState('setting', ['systemName', 'systemDesc', 'homePage', 'ticketPage', 'compatible', 'routeName'])
79
79
  },
80
80
  methods: {
81
81
  ...mapMutations('account', ['setUser', 'setPermissions', 'setRoles']),
@@ -138,7 +138,7 @@ export default {
138
138
  encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB')
139
139
  const data = encrypt.encrypt(JSON.stringify({ username: name, password: password }))
140
140
  // 获取路由配置
141
- getRoutesConfig(data).then(result => {
141
+ getRoutesConfig(data, this.routeName).then(result => {
142
142
  this.$login.login(result).then(() => {
143
143
  // V3任何情况首位加入资源管理
144
144
  const resourceManageMain = {
@@ -6,7 +6,7 @@ module.exports = {
6
6
  LOGIN: `/rs/logic/getLogin`,
7
7
  V4_LOGIN: '/auth/login',
8
8
  V4_LOGOUT: '/auth/logout',
9
- ROUTES: `/rs/user/userLogin/智慧燃气`,
9
+ ROUTES: `/rs/user/userLogin`,
10
10
  SEARCH: `/rs/search`,
11
11
  GOODS: `/goods`,
12
12
  GOODS_COLUMNS: `/columns`
@@ -25,8 +25,8 @@ export async function V4GetInfo () {
25
25
  return request(V4_GET_INFO, METHOD.POST, {})
26
26
  }
27
27
 
28
- export async function getRoutesConfig (value) {
29
- return request(ROUTES, METHOD.POST, value)
28
+ export async function getRoutesConfig (value, routeName = '智慧燃气') {
29
+ return request(ROUTES + '/' + routeName, METHOD.POST, value)
30
30
  }
31
31
 
32
32
  /**