提交 1682ebc1 authored 作者: matian's avatar matian

代码提交

上级 d9e189c7
...@@ -197,8 +197,8 @@ export default { ...@@ -197,8 +197,8 @@ export default {
}, },
mounted() { mounted() {
// this.loginSuccess() // this.loginSuccess()
// console.log(JSON.parse(window.sessionStorage.userInfo)) // console.log(JSON.parse(window.sessionStorage.userInfo), '9999')
this.user = JSON.parse(window.sessionStorage.userInfo) // this.user = JSON.parse(window.sessionStorage.userInfo) || ''
}, },
methods: { methods: {
goPage(path, n) { goPage(path, n) {
......
...@@ -129,7 +129,6 @@ export default { ...@@ -129,7 +129,6 @@ export default {
watch: { watch: {
'$route': { '$route': {
handler: function(val, oldVal){ handler: function(val, oldVal){
// 'pointScroll'
this.pointScroll() this.pointScroll()
}, },
deep: true deep: true
......
...@@ -177,8 +177,6 @@ export default { ...@@ -177,8 +177,6 @@ export default {
watch: { watch: {
$route: { $route: {
handler: function(val, oldVal) { handler: function(val, oldVal) {
// 'pointScroll'
this.pointScroll() this.pointScroll()
}, },
deep: true deep: true
......
...@@ -170,7 +170,6 @@ export default { ...@@ -170,7 +170,6 @@ export default {
watch: { watch: {
$route: { $route: {
handler: function(val, oldVal) { handler: function(val, oldVal) {
// 'pointScroll'
this.pointScroll() this.pointScroll()
}, },
deep: true deep: true
......
...@@ -311,7 +311,6 @@ export default { ...@@ -311,7 +311,6 @@ export default {
window.sessionStorage.userInfo = JSON.stringify(user) window.sessionStorage.userInfo = JSON.stringify(user)
this.isLogin = isLogin this.isLogin = isLogin
this.user = user this.user = user
this.$router.push('/my') this.$router.push('/my')
}) })
window.location.reload() window.location.reload()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论