fengdong777 2 years ago
parent
commit
6f73b1eae5
  1. 2
      supervise-portal-ui/.env.development
  2. 3
      supervise-portal-ui/package.json
  3. 3
      supervise-portal-ui/src/api/User/login.js
  4. 1
      supervise-portal-ui/src/views/Home/Home.vue

2
supervise-portal-ui/.env.development

@ -5,5 +5,5 @@ ENV = 'development'
VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址
VUE_APP_URL = "http://127.0.0.1:8112"
VUE_APP_URL = "http://192.168.1.193:8112"
#VUE_APP_URL = "http://8.130.39.13:8112"

3
supervise-portal-ui/package.json

@ -25,11 +25,14 @@
"path-to-regexp": "2.4.0",
"portfinder": "^1.0.21",
"qs": "^6.9.4",
"regenerator-runtime": "^0.14.0",
"sass-resources-loader": "^2.1.1",
"svg-baker-runtime": "^1.4.7",
"viewerjs": "^1.9.0",
"vue": "2.6.10",
"vue-amap": "^0.5.10",
"vue-router": "3.0.6",
"vue-style-loader": "^4.1.3",
"vuex": "3.1.0",
"vuex-persistedstate": "^4.0.0",
"xcrud": "^0.4.19"

3
supervise-portal-ui/src/api/User/login.js

@ -22,7 +22,8 @@ class user {
return request({
url: '/portal/v1/sysuser/updatePassword',
method: 'post',
data: qs.stringify(data)
data: data,
headers: { 'Content-Type': 'application/json' }
})
}

1
supervise-portal-ui/src/views/Home/Home.vue

@ -362,6 +362,7 @@
return
}
this.form.userSid = window.sessionStorage.getItem('userSid')
User.updatePassword(this.form).then(resp => {
if (resp.success) {
this.$alert('密码修改成功!请重新登录点击确定后退出。', '修改成功', {

Loading…
Cancel
Save