Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
a81b24d5
Commit
a81b24d5
authored
Oct 11, 2021
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复登录问题
parent
0290082e
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
9 deletions
+52
-9
.env.developmentsy
.env.developmentsy
+1
-1
.env.testsy
.env.testsy
+1
-1
package-lock.json
package-lock.json
+39
-0
user.ts
src/api/modules/user.ts
+6
-2
Index-sy.vue
src/views/index/Index-sy.vue
+1
-1
Login.vue
src/views/login/Login.vue
+0
-0
Index.vue
src/views/viewTemplate/Index.vue
+3
-3
vue.config.js
vue.config.js
+1
-1
No files found.
.env.developmentsy
View file @
a81b24d5
VUE_APP_SERVER=/api
VUE_APP_SERVER=/api
VUE_APP_BROWSER=http://12
0.26.174.69:9032
VUE_APP_BROWSER=http://12
1.40.18.70:8995
VUE_APP_NAME=上链查溯源
VUE_APP_NAME=上链查溯源
VUE_APP_CATEGORY=sy
VUE_APP_CATEGORY=sy
.env.testsy
View file @
a81b24d5
NODE_ENV=production
NODE_ENV=production
VUE_APP_SERVER=/api
VUE_APP_SERVER=/api
VUE_APP_BROWSER=http://12
0.26.174.69:9032
VUE_APP_BROWSER=http://12
1.40.18.70:8995
VUE_APP_NAME=上链查溯源
VUE_APP_NAME=上链查溯源
VUE_APP_CATEGORY=sy
VUE_APP_CATEGORY=sy
package-lock.json
View file @
a81b24d5
...
@@ -933,6 +933,15 @@
...
@@ -933,6 +933,15 @@
"regenerator-runtime"
:
"^0.13.4"
"regenerator-runtime"
:
"^0.13.4"
}
}
},
},
"@babel/runtime-corejs3"
:
{
"version"
:
"7.15.4"
,
"resolved"
:
"https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.15.4.tgz"
,
"integrity"
:
"sha512-lWcAqKeB624/twtTc3w6w/2o9RqJPaNBhPGK6DKLSiwuVWC7WFkypWyNg+CpZoyJH0jVzv1uMtXZ/5/lQOLtCg=="
,
"requires"
:
{
"core-js-pure"
:
"^3.16.0"
,
"regenerator-runtime"
:
"^0.13.4"
}
},
"@babel/template"
:
{
"@babel/template"
:
{
"version"
:
"7.8.6"
,
"version"
:
"7.8.6"
,
"resolved"
:
"https://registry.npm.taobao.org/@babel/template/download/@babel/template-7.8.6.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/@babel/template/download/@babel/template-7.8.6.tgz"
,
...
@@ -3519,6 +3528,11 @@
...
@@ -3519,6 +3528,11 @@
}
}
}
}
},
},
"core-js-pure"
:
{
"version"
:
"3.18.2"
,
"resolved"
:
"https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.18.2.tgz"
,
"integrity"
:
"sha512-4hMMLUlZhKJKOWbbGD1/VDUxGPEhEoN/T01k7bx271WiBKCvCfkgPzy0IeRS4PB50p6/N1q/SZL4B/TRsTE5bA=="
},
"core-util-is"
:
{
"core-util-is"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz"
,
...
@@ -10626,6 +10640,31 @@
...
@@ -10626,6 +10640,31 @@
"resolved"
:
"https://registry.npmjs.org/vuex-class/-/vuex-class-0.3.2.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vuex-class/-/vuex-class-0.3.2.tgz"
,
"integrity"
:
"sha512-m0w7/FMsNcwJgunJeM+wcNaHzK2KX1K1rw2WUQf7Q16ndXHo7pflRyOV/E8795JO/7fstyjH3EgqBI4h4n4qXQ=="
"integrity"
:
"sha512-m0w7/FMsNcwJgunJeM+wcNaHzK2KX1K1rw2WUQf7Q16ndXHo7pflRyOV/E8795JO/7fstyjH3EgqBI4h4n4qXQ=="
},
},
"wangeditor"
:
{
"version"
:
"4.7.8"
,
"resolved"
:
"https://registry.npmjs.org/wangeditor/-/wangeditor-4.7.8.tgz"
,
"integrity"
:
"sha512-x033FPrVDgqzaKHMp75B247w02VIR1vGwstSZnXeJhdFhgLH979G8SWkSpXCcCVAKdHP0gbSkYb5r0Lp3Erdag=="
,
"requires"
:
{
"@babel/runtime"
:
"^7.11.2"
,
"@babel/runtime-corejs3"
:
"^7.11.2"
,
"tslib"
:
"^2.1.0"
},
"dependencies"
:
{
"@babel/runtime"
:
{
"version"
:
"7.15.4"
,
"resolved"
:
"https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz"
,
"integrity"
:
"sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw=="
,
"requires"
:
{
"regenerator-runtime"
:
"^0.13.4"
}
},
"tslib"
:
{
"version"
:
"2.3.1"
,
"resolved"
:
"https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz"
,
"integrity"
:
"sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
}
}
},
"watchpack"
:
{
"watchpack"
:
{
"version"
:
"1.6.1"
,
"version"
:
"1.6.1"
,
"resolved"
:
"https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.1.tgz"
,
"resolved"
:
"https://registry.npm.taobao.org/watchpack/download/watchpack-1.6.1.tgz"
,
...
...
src/api/modules/user.ts
View file @
a81b24d5
...
@@ -60,8 +60,12 @@ const user = {
...
@@ -60,8 +60,12 @@ const user = {
...
params
,
...
params
,
});
});
},
},
getUserInfo
(
id
:
number
=
0
)
{
getUserInfo
()
{
return
axios
.
get
(
`
${
base
}
/
${
id
}
`
);
let
userInfo
:
any
=
localStorage
.
getItem
(
'userInfo'
);
if
(
userInfo
)
{
userInfo
=
JSON
.
parse
(
userInfo
);
}
return
axios
.
get
(
`
${
base
}
/
${
userInfo
?.
id
||
0
}
`);
},
},
updateUserInfo(id: number = 0, params: any) {
updateUserInfo(id: number = 0, params: any) {
return axios.patch(`
$
{
base
}
/${id}`,
{
return axios.patch(`
$
{
base
}
/${id}`,
{
...
...
src/views/index/Index-sy.vue
View file @
a81b24d5
...
@@ -148,7 +148,7 @@ export default class IndexSy extends Mixins(IndexMixin) {
...
@@ -148,7 +148,7 @@ export default class IndexSy extends Mixins(IndexMixin) {
this
.
loading
=
false
;
this
.
loading
=
false
;
}
else
{
}
else
{
this
.
setPage
(
1
);
this
.
setPage
(
1
);
const
promises
=
[
this
.
getProofCount
(),
this
.
getUserFolders
()];
const
promises
=
[
this
.
getUserFolders
()];
await
Promise
.
all
(
promises
);
await
Promise
.
all
(
promises
);
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
...
...
src/views/login/Login.vue
View file @
a81b24d5
src/views/viewTemplate/Index.vue
View file @
a81b24d5
...
@@ -61,7 +61,7 @@ export default class ViewTemplate extends Vue {
...
@@ -61,7 +61,7 @@ export default class ViewTemplate extends Vue {
return
this
.
templateList
.
length
===
0
;
return
this
.
templateList
.
length
===
0
;
}
}
get
isFolderList
(){
get
isFolderList
()
{
return
this
.
folderId
!==
undefined
;
return
this
.
folderId
!==
undefined
;
}
}
...
@@ -85,8 +85,8 @@ export default class ViewTemplate extends Vue {
...
@@ -85,8 +85,8 @@ export default class ViewTemplate extends Vue {
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'Add'
,
name
:
'Add'
,
query
:
{
query
:
{
folderId
:
this
.
folderId
.
toString
()
folderId
:
this
.
folderId
.
toString
()
,
}
}
,
});
});
}
}
}
}
...
...
vue.config.js
View file @
a81b24d5
...
@@ -19,7 +19,7 @@ module.exports = {
...
@@ -19,7 +19,7 @@ module.exports = {
disableHostCheck
:
true
,
disableHostCheck
:
true
,
proxy
:
{
proxy
:
{
'^/api'
:
{
'^/api'
:
{
target
:
`http://172.16.101.87:
${
process
.
env
.
VUE_APP_CATEGORY
===
'cs'
?
'46788'
:
'467
89
'
}
`
,
target
:
`http://172.16.101.87:
${
process
.
env
.
VUE_APP_CATEGORY
===
'cs'
?
'46788'
:
'467
90
'
}
`
,
pathRewrite
:
{
pathRewrite
:
{
'^/api'
:
'/api'
,
'^/api'
:
'/api'
,
}
}
...
...
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