摘要:
index.js import { createStore } from "vuex"; const store=createStore({ state:{ count:100 }, getters:{ compower(state){ return (id)=>state.count*id } } 阅读全文
posted @ 2024-02-13 22:28
学无边涯
阅读(29)
评论(0)
推荐(0)
摘要:
index.js写法 import { createStore } from "vuex"; const store=createStore({ state:{ count:100 }, getters:{ compower(state){ return (id)=>state.count*id } 阅读全文
posted @ 2024-02-13 21:47
学无边涯
阅读(38)
评论(0)
推荐(0)
摘要:
index.js 写法 import { createStore } from "vuex"; const store=createStore({ state:{ count:100 }, getters:{ compower(state){ return (id)=>state.count*id 阅读全文
posted @ 2024-02-13 21:13
学无边涯
阅读(142)
评论(0)
推荐(0)
摘要:
1,createWebHistory 这种h5用法 localhost:// 2,createWebHashHistory 这种hash用法 路径会带# localhost:/#/ 阅读全文
posted @ 2024-02-13 16:29
学无边涯
阅读(1478)
评论(0)
推荐(0)
摘要:
1,beforEach router.beforeach(to,from,next)=>{ console.log('1111') } 2,afterEach router.aftereach(to,from,next)=>{ console.log('222') } 阅读全文
posted @ 2024-02-13 10:39
学无边涯
阅读(406)
评论(0)
推荐(0)

浙公网安备 33010602011771号