فهرست منبع

【feat】【第二版开发】

1.修复撤销功能传参错误导致的功能异常
2.增加运行和打包的配置
ChenYL 1 سال پیش
والد
کامیت
f5fb4d8b0d
3فایلهای تغییر یافته به همراه32 افزوده شده و 1 حذف شده
  1. 15 0
      .vscode/launch.json
  2. 16 0
      .vscode/tasks.json
  3. 1 1
      src/pages/punchin-detail/punchin-detail.vue

+ 15 - 0
.vscode/launch.json

@@ -0,0 +1,15 @@
+{
+    // 使用 IntelliSense 了解相关属性。 
+    // 悬停以查看现有属性的描述。
+    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "type": "node-terminal",
+            "name": "SIT测试环境",
+            "request": "launch",
+            "command": "npm run dev:custom wp-sit",
+            "cwd": "${workspaceFolder}"
+        }
+    ]
+}

+ 16 - 0
.vscode/tasks.json

@@ -0,0 +1,16 @@
+{
+	"version": "2.0.0",
+	"tasks": [
+		{
+			"type": "npm",
+			"script": "build:custom wp-prod",
+			"group": {
+				"kind": "build",
+				"isDefault": true
+			},
+			"problemMatcher": [],
+			"label": "生产环境打包",
+			"detail": "npm run build:custom wp-prod"
+		}
+	]
+}

+ 1 - 1
src/pages/punchin-detail/punchin-detail.vue

@@ -317,7 +317,7 @@ const remakeFormClose = async () => {
  * 撤销确认
  */
 const revokeDialogConfirm = async () => {
-	punchInApi.revokePunchIn({ id: punchInId.value })
+	punchInApi.revokePunchIn({ punchInId: punchInId.value })
 		.then(ret => {
 			revokeDialog.value.close();
 			uni.showToast({