Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>uni-vuex-peekNew to Visual Studio Code? Get it now.
uni-vuex-peek

uni-vuex-peek

Preview

szq

|
435 installs
| (1) | Free
跳转到uni-ui组件、vuex store插件
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

1、选中内容右键 更新 vuex store
2、Ctrl + 鼠标左键 点击跳转查看 vuex store 中定义的内容
3、uni-ui组件的跳转定义、悬停提示
4、项目文件夹右键新建uniapp vuex js文件模版

Requirements

支持 vue 文件跳转正常运行的前提:

1.store 文件默认存放目录地址:src/store/modules/ 可配置修改路径
2.store 的定义规范:

const state = () => ({
	name: "",
})
const getters = {
	getName: state => {
		return state.name;
	},
}
const actions = {
	check1({ commit }, {xxx}) {
    }
}
const mutations = {
	modifyName(state, name) {
		state.name = name;
	}
}
export default {
	state: {
		
	},
	getters: {
		
	},
	mutations: {
		
	},
	actions: { 
		
	}
}

3.vue 文件中使用模块名必须有:

...mapState("user", {
      name: (state) => state.name
})
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft