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> </div>
</template> </template>
<script> <script>
import { getInterfaceBoard } from "@/api/wms-interface"
export default { export default {
name: 'Login', name: 'Login',
data () { data () {
@ -168,6 +168,12 @@ export default {
this.loading = true this.loading = true
this.$store.dispatch('user/login', this.loginForm) this.$store.dispatch('user/login', this.loginForm)
.then(() => { .then(() => {
//
getInterfaceBoard().then(result => {
localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.data.localization.values.Dashboard));
})
.catch(err => {
})
this.$router.push({ path: '/'}) this.$router.push({ path: '/'})
this.loading = false this.loading = false
}) })

Loading…
Cancel
Save