|
|
@@ -15,20 +15,20 @@
|
|
|
layout (context) {
|
|
|
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)
|
|
|
- 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})
|
|
|
- // ])
|
|
|
+ // created() {
|
|
|
+ // 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
|