no message
This commit is contained in:
17
store/about.js
Normal file
17
store/about.js
Normal file
@ -0,0 +1,17 @@
|
||||
export const namespaced = true
|
||||
|
||||
export const state = () => ({
|
||||
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
|
||||
}
|
||||
|
||||
export const getters = {
|
||||
|
||||
}
|
||||
17
store/home.js
Normal file
17
store/home.js
Normal file
@ -0,0 +1,17 @@
|
||||
export const namespaced = true
|
||||
|
||||
export const state = () => ({
|
||||
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
|
||||
}
|
||||
|
||||
export const getters = {
|
||||
|
||||
}
|
||||
20
store/index.js
Normal file
20
store/index.js
Normal file
@ -0,0 +1,20 @@
|
||||
//默认就是根store,不需要namespaced:true,访问的时候直接写根级别的key : this.$store.dispatch('example)
|
||||
|
||||
export const state = () => ({
|
||||
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
// 只在服务端渲染时运行一次
|
||||
async nuxtServerInit({ dispatch, commit }, { app, req }) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export const getters = {
|
||||
|
||||
}
|
||||
17
store/user.js
Normal file
17
store/user.js
Normal file
@ -0,0 +1,17 @@
|
||||
export const namespaced = true
|
||||
|
||||
export const state = () => ({
|
||||
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
|
||||
}
|
||||
|
||||
export const actions = {
|
||||
|
||||
}
|
||||
|
||||
export const getters = {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user