Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
robot-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪晓凯
robot-monitor
Commits
d7b19850
Commit
d7b19850
authored
Jul 30, 2018
by
wxk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
本地开发配置优化、注册成功后清空缓存密码
parent
fc85da38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
index.js
config/index.js
+3
-3
api-config.js
src/config/api-config.js
+1
-2
Login.vue
src/views/Login.vue
+1
-1
No files found.
config/index.js
View file @
d7b19850
...
@@ -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:4665
7'
,
//
target
:
'http://47.91.221.203:4665
6'
,
//测试
// target: 'http://1
93.112.106.35:46657
', // 接口的域名
// target: 'http://1
3.70.1.145:4567/asset_monitor
', // 接口的域名
// secure: false, // 如果是https接口,需要配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
changeOrigin
:
true
,
// 如果接口跨域,需要进行这个参数配置
pathRewrite
:
{
pathRewrite
:
{
...
...
src/config/api-config.js
View file @
d7b19850
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"
,
//注册
...
...
src/views/Login.vue
View file @
d7b19850
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment