Skip to content

Commit ec6352a

Browse files
authored
fix(config): defualt routing according to configuration item (#364)
fix #361
1 parent e8490f1 commit ec6352a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/view/login/login.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
<script>
2222
import { mapActions, mapMutations } from 'vuex'
23+
import AppConfig from '@/config/index'
2324
import User from '@/lin/model/user'
2425
import Utils from '@/lin/util/util'
2526
@@ -44,7 +45,7 @@ export default {
4445
await User.getToken(username, password)
4546
await this.getInformation()
4647
this.loading = false
47-
this.$router.push('/about')
48+
this.$router.push(AppConfig.defaultRoute)
4849
this.$message.success('登录成功')
4950
} catch (e) {
5051
this.loading = false

0 commit comments

Comments
 (0)