摘要: 登录页 触发登录事件 methods: { //触发登录事件 onSubmit() { // 如果登录成功 if (this.id 'admin' && this.password '123456') { this.$router.push('/main') //跳转页面 localStorage. 阅读全文
posted @ 2022-03-21 22:34 朝颜浅语 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1.对应的包 import { Loading } from 'element-ui' 2.data中进行声明 data() { return { loadingInstance: null, } }, 3.加入动画 this.loadingInstance = Loading.service({ 阅读全文
posted @ 2022-03-21 21:31 朝颜浅语 阅读(519) 评论(0) 推荐(0) 编辑