system-clients 3.2.97 → 3.2.99

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": "system-clients",
3
- "version": "3.2.97",
3
+ "version": "3.2.99",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -79,7 +79,7 @@
79
79
  "style": "0.0.3",
80
80
  "style-loader": "^0.20.3",
81
81
  "url-loader": "^0.5.7",
82
- "vue-client": "1.24.145-1",
82
+ "vue-client": "1.24.160",
83
83
  "vue-hot-reload-api": "^1.2.0",
84
84
  "vue-html-loader": "^1.0.0",
85
85
  "vue-loader": "^8.2.1",
@@ -227,12 +227,6 @@ let createWaterMark = function (userName) {
227
227
  (document.head.append || document.head.appendChild).apply(document.head, [style]);
228
228
  }
229
229
 
230
- window.onunload = () => {
231
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
232
- }
233
- window.onbeforeunload = () => {
234
- vue.http({url: `rs/user/update/${this.$login.f.ename}`, method: 'GET'})
235
- }
236
230
  export default {
237
231
  title: '主界面',
238
232
  props: ['functions', 'userid', 'config'],
@@ -9,10 +9,14 @@ let loginGen = async function (username, password, cue) {
9
9
  })
10
10
  if (getLogin.data) {
11
11
  //获取jwt
12
- Vue.$login.jwt = getLogin.data.resources.data.id
12
+ if (getLogin.data.resources.data && getLogin.data.resources.data.id){
13
+ Vue.$login.jwt = getLogin.data.resources.data.id
14
+ Vue.$login.f = getLogin.data.resources.data
15
+ }else {
16
+ Vue.$login.jwt = getLogin.data.resources.id
17
+ Vue.$login.f = getLogin.data.resources
18
+ }
13
19
  Vue.$login.jwtNew = getLogin.data.access_token
14
- // 调用远程登录服务,获取所有有权访问的功能
15
- Vue.$login.f = getLogin.data.resources.data
16
20
  // 把登录用户添加到cookie里
17
21
  Vue.cookie.set('loginId', Vue.$login.f.id)
18
22
  try {