|
|
@ -74,7 +74,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
|
|
|
|
import { getInterfaceBoard } from "@/api/wms-interface" |
|
|
|
export default { |
|
|
|
name: 'Login', |
|
|
|
data () { |
|
|
@ -168,6 +168,12 @@ export default { |
|
|
|
this.loading = true |
|
|
|
this.$store.dispatch('user/login', this.loginForm) |
|
|
|
.then(() => { |
|
|
|
// 提前获取接口监控看板表头数据并存储 |
|
|
|
getInterfaceBoard().then(result => { |
|
|
|
localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.data.localization.values.Dashboard)); |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
}) |
|
|
|
this.$router.push({ path: '/'}) |
|
|
|
this.loading = false |
|
|
|
}) |
|
|
|