Browse Source

[完善]去掉修改默认密码提示框

master
邵佳豪 2 years ago
parent
commit
cc946ca8f1
  1. 4
      proxy.config.json
  2. 7
      src/app/pages/home/home.component.ts

4
proxy.config.json

@ -1,11 +1,11 @@
{ {
"/api": { "/api": {
"target": "http://39.106.78.171:8906", "target": "http://10.156.134.53:8200",
"secure": false, "secure": false,
"changeOrigin": true "changeOrigin": true
}, },
"/signalr": { "/signalr": {
"target": "http://39.106.78.171:8906", "target": "http://10.156.134.53:8200",
"secure": false, "secure": false,
"ws": true, "ws": true,
"logLevel": "debug" "logLevel": "debug"

7
src/app/pages/home/home.component.ts

@ -55,9 +55,9 @@ export class HomeComponent implements OnInit {
this.userName = JSON.parse(sessionStorage.getItem('userdata')).userName this.userName = JSON.parse(sessionStorage.getItem('userdata')).userName
} }
//修改密码提示框 //修改密码提示框
if ((sessionStorage.getItem('isDefaultPassword') == 'true' || sessionStorage.getItem('isPasswordExpired') == 'true') && JSON.parse(sessionStorage.getItem('userdata')).userName != 'admin') { // if ((sessionStorage.getItem('isDefaultPassword') == 'true' || sessionStorage.getItem('isPasswordExpired') == 'true') && JSON.parse(sessionStorage.getItem('userdata')).userName != 'admin') {
this.changePasswordPopup() // this.changePasswordPopup()
} // }
} }
@ -296,6 +296,7 @@ export class HomeComponent implements OnInit {
// this.readMess(item.notification.id) // this.readMess(item.notification.id)
}) })
} }
close(item) { close(item) {
// console.log(item) // console.log(item)
this.messageId.forEach((element) => { this.messageId.forEach((element) => {

Loading…
Cancel
Save