Commit d7b19850 authored by wxk's avatar wxk

本地开发配置优化、注册成功后清空缓存密码

parent fc85da38
...@@ -10,9 +10,9 @@ module.exports = { ...@@ -10,9 +10,9 @@ module.exports = {
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: { proxyTable: {
'/': { '/asset_monitor': {
target: 'http://47.91.221.203:46657', // target: 'http://47.91.221.203:46656', //测试
// target: 'http://193.112.106.35:46657', // 接口的域名 // target: 'http://13.70.1.145:4567/asset_monitor', // 接口的域名
// secure: false, // 如果是https接口,需要配置这个参数 // secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
pathRewrite: { pathRewrite: {
......
const originUrl = ""//本地开发 const originUrl = "/asset_monitor"
// const originUrl = "/asset_monitor"//测试
const Api = { const Api = {
Login: originUrl + "/login",//登录 Login: originUrl + "/login",//登录
Register: originUrl + "/register",//注册 Register: originUrl + "/register",//注册
......
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
type: 'success', type: 'success',
duration:'2000', duration:'2000',
}); });
localStorage.removeItem('password');
this.loginEmail = this.regist_email; this.loginEmail = this.regist_email;
this.loginPassword = this.regist_password; this.loginPassword = this.regist_password;
this.isSaveLoginInfo = true; this.isSaveLoginInfo = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment