//main.js
//错误的写法
import router from "./router";
router.beforeEach((to, from, next) => {
//this.$localStorage.set("token","123123")
console.log(this
TypeError: Cannot read property '$localStorage' of undefined
最新推荐文章于 2023-05-22 20:59:20 发布