Browse Source

登录添加提前获取接口监控看板表头数据并存储

dev_web_online
安虹睿 2 years ago
parent
commit
bd4f51d86b
  1. 8
      fe/PC/src/views/login/index.vue

8
fe/PC/src/views/login/index.vue

@ -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
})

Loading…
Cancel
Save