create-jnrs-vue 1.2.22 → 1.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -40,7 +40,7 @@ jnrs-vue/
40
40
  │ ├── router/ # 路由配置
41
41
  │ ├── api/ # 接口定义(已含 request 实例)
42
42
  │ ├── types/ # 类型定义
43
- │ ├── store/ # 状态管理
43
+ │ ├── stores/ # 状态管理
44
44
  │ ├── utils/ # 工具函数
45
45
  │ ├── locales/ # 国际化
46
46
  │ └── main.ts # 应用入口
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { execSync } from 'child_process'
10
- import { cpSync, readFileSync, writeFileSync } from 'fs'
10
+ import { cpSync, readFileSync, writeFileSync, rmSync } from 'fs'
11
11
  import { join } from 'path'
12
12
 
13
13
  console.log('🔄 正在拉取最新模板...')
@@ -37,4 +37,4 @@ console.log(' - 检查 package.json 差异')
37
37
  console.log(' - src/ 目录未自动更新,请手动合并新功能')
38
38
 
39
39
  // 4. 清理临时目录
40
- execSync('rm -rf _temp_new')
40
+ rmSync('_temp_new', { recursive: true, force: true })
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jnrs-vue",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "JNRS 信息化管理系统",
5
5
  "author": "talia_tan",
6
6
  "private": true,
@@ -8,6 +8,9 @@
8
8
  "engines": {
9
9
  "node": "^20.19.0 || >=22.12.0"
10
10
  },
11
+ "bin": {
12
+ "upgrade-jnrs-vue": "./bin/upgrade.mjs"
13
+ },
11
14
  "scripts": {
12
15
  "dev": "vite",
13
16
  "build": "run-p type-check \"build-only {@}\" --",
@@ -83,7 +83,7 @@ export const FullDataApiTest = (id: string): Promise<IBusinessResponse<IUser>> =
83
83
  params: {
84
84
  id
85
85
  },
86
- returnFullResponse: true // 返回完整响应数据
86
+ returnFullResponse: true // 需要返回完整响应数据时使用该选项
87
87
  })
88
88
  }
89
89
 
@@ -11,6 +11,26 @@
11
11
  "permissions": ["menu:view"],
12
12
  "abilityCoefficient": 0.0,
13
13
  "dict": {
14
+ "projectType": [
15
+ {
16
+ "label": "瀑布型",
17
+ "value": 0,
18
+ "displayColor": "#65DC79",
19
+ "sequence": 1
20
+ },
21
+ {
22
+ "label": "敏捷型",
23
+ "value": 1,
24
+ "displayColor": "#409EFF",
25
+ "sequence": 2
26
+ },
27
+ {
28
+ "label": "混合型",
29
+ "value": 2,
30
+ "displayColor": "#F9DD4A",
31
+ "sequence": 3
32
+ }
33
+ ],
14
34
  "defectiveWorkHourStatus": [
15
35
  {
16
36
  "label": "等待",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jnrs-vue",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "巨能前端工程化开发,Vue 项目模板脚手架",
5
5
  "keywords": [
6
6
  "vue",
@@ -17,8 +17,7 @@
17
17
  },
18
18
  "type": "module",
19
19
  "bin": {
20
- "create-jnrs-vue": "./bin/create.mjs",
21
- "upgrade-jnrs-vue": "./bin/upgrade.mjs"
20
+ "create-jnrs-vue": "./bin/create.mjs"
22
21
  },
23
22
  "files": [
24
23
  "bin",