Yi.Vue2.x.Vuetify/src/store/modules/pan.js
(完整代码) 802Bconst state = {
basePath: "",
extendPath:""
}
const mutations = { //变化//载荷
SetExtendPath(state, extendPath) {
state.extendPath = extendPath
},
SetBasePath(state, basePath) {
state.basePath = basePath
}
}
//在action中可以配合axios进行权限判断
const actions = { //动作
Set_ExtendPath(context,extendPath) {
context.commit('SetExtendPath',extendPath)
},
Set_BasePath(context,basePath) {
context.commit('SetBasePath',basePath)
},
Add_ExtendPath(context,extendPath) {
context.commit('SetExtendPath',context.state.extendPath+"/"+extendPath)
},
}
const getters = {
path: state => {
return state.basePath+state.extendPath;
}
}
export default { state, mutations, actions, getters }
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
