Commit d7b19850 authored by wxk's avatar wxk

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

parent fc85da38
......@@ -10,9 +10,9 @@ module.exports = {
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/': {
target: 'http://47.91.221.203:46657', //
// target: 'http://193.112.106.35:46657', // 接口的域名
'/asset_monitor': {
target: 'http://47.91.221.203:46656', //测试
// target: 'http://13.70.1.145:4567/asset_monitor', // 接口的域名
// secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
pathRewrite: {
......
const originUrl = ""//本地开发
// const originUrl = "/asset_monitor"//测试
const originUrl = "/asset_monitor"
const Api = {
Login: originUrl + "/login",//登录
Register: originUrl + "/register",//注册
......
......@@ -208,7 +208,7 @@ export default {
type: 'success',
duration:'2000',
});
localStorage.removeItem('password');
this.loginEmail = this.regist_email;
this.loginPassword = this.regist_password;
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