|
@@ -16,19 +16,19 @@
|
|
|
return context.store.state.option.isMobile ? 'mobile' : 'isCityFooter'
|
|
|
},
|
|
|
created() {
|
|
|
- // this.$http.get('/sso/login/page/style', { params: {appId: this.$route.query.appId} })
|
|
|
- // .then(response => {
|
|
|
- // console.log(response.data)
|
|
|
- // // commit('login/REQUEST_LOGIN_STYLE_SUCCESS', response.data)
|
|
|
- // }, err => {
|
|
|
- // // commit('login/REQUEST_LOGIN_STYLE_FAILURE', err)
|
|
|
- // })
|
|
|
- },
|
|
|
- asyncData ({store, route}) {
|
|
|
- return Promise.all([
|
|
|
- store.dispatch('GetLoginStyle', {appId: route.query.appId})
|
|
|
- ])
|
|
|
+ this.$http.get('/sso/login/page/style', { params: {appId: this.$route.query.appId} })
|
|
|
+ .then(response => {
|
|
|
+ console.log(response.data)
|
|
|
+ this.$store.commit('login/REQUEST_LOGIN_STYLE_SUCCESS', response.data)
|
|
|
+ }, err => {
|
|
|
+ this.$store.commit('login/REQUEST_LOGIN_STYLE_FAILURE', err)
|
|
|
+ })
|
|
|
},
|
|
|
+ // asyncData ({store, route}) {
|
|
|
+ // return Promise.all([
|
|
|
+ // store.dispatch('GetLoginStyle', {appId: route.query.appId})
|
|
|
+ // ])
|
|
|
+ // },
|
|
|
components: {
|
|
|
Login,
|
|
|
LoginMobile
|