diff --git a/pwuniapp/pages/expert/hall.vue b/pwuniapp/pages/expert/hall.vue index 419c2f4..646311a 100644 --- a/pwuniapp/pages/expert/hall.vue +++ b/pwuniapp/pages/expert/hall.vue @@ -385,7 +385,7 @@ onUnmounted(() => { }); -const countByType = (cls: string) => orders.value.filter((o: any) => o.typeClass === cls).length; +const countByType = (cls) => orders.value.filter((o) => o.typeClass === cls).length; const categories = computed(() => [ { key: 'all', name: '全部可接', count: orders.value.length, icon: ICONS.gridAll }, diff --git a/server/tests/miniapp-script-syntax.spec.ts b/server/tests/miniapp-script-syntax.spec.ts new file mode 100644 index 0000000..ecc3f42 --- /dev/null +++ b/server/tests/miniapp-script-syntax.spec.ts @@ -0,0 +1,38 @@ +// 已读取AGENTS.md +import * as fs from 'fs'; +import * as path from 'path'; + +/** + * 第九十七批:小程序 Vue 单文件不得混入 TypeScript 语法。 + * 背景:hall.vue 的 `