mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-01 19:28:51 +08:00
fix: 修改plop模板的错误
This commit is contained in:
parent
c69f9b09ec
commit
8220f4b366
@ -5,7 +5,7 @@ import { StorageEnum } from '@/enums/storageEnum'
|
||||
|
||||
export const use{{upperDataName}}Store = defineStore({
|
||||
id: 'use{{upperDataName}}Store',
|
||||
state: (): {{name}}StoreType => ({}),
|
||||
state: (): {{upperDataName}}StoreType => ({}),
|
||||
getters: {},
|
||||
actions: {}
|
||||
})
|
@ -22,7 +22,7 @@ module.exports = {
|
||||
const actions = [
|
||||
{
|
||||
type: 'add',
|
||||
path: `${process.cwd()}/src/store/modules/${dataName}Store/${dataName}Store}.ts`, // 这里的name就是上面定义的键
|
||||
path: `${process.cwd()}/src/store/modules/${dataName}Store/${dataName}Store.ts`, // 这里的name就是上面定义的键
|
||||
templateFile: './store-template/index.hbs',
|
||||
data: {
|
||||
name: data.name,
|
||||
@ -32,7 +32,11 @@ module.exports = {
|
||||
{
|
||||
type: 'add',
|
||||
path: `${process.cwd()}/src/store/modules/${dataName}Store/${dataName}Store.d.ts`, // 这里的name就是上面定义的键
|
||||
templateFile: './store-template/index.d.hbs'
|
||||
templateFile: './store-template/index.d.hbs',
|
||||
data: {
|
||||
name: data.name,
|
||||
upperDataName,
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user