瀏覽代碼

更新主入口文件,替换@ts-ignore为@ts-expect-error,以更准确地处理全局Vue选项API和开发工具标志的类型声明问题。

xbx 1 周之前
父節點
當前提交
2e7bbf5114
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main.ts

+ 3 - 3
src/main.ts

@@ -6,11 +6,11 @@ import router from './router';
 import store from './store';
 
 // 设置 Vue 功能标志
-// @ts-ignore - 添加 Vue 功能标志
+// @ts-expect-error - 全局 Vue 选项 API 标志未在类型定义中声明
 window.__VUE_OPTIONS_API__ = true;
-// @ts-ignore
+// @ts-expect-error - 全局 Vue 开发工具标志未在类型定义中声明
 window.__VUE_PROD_DEVTOOLS__ = process.env.NODE_ENV !== 'production';
-// @ts-ignore
+// @ts-expect-error - 全局 Vue 水合不匹配详情标志未在类型定义中声明
 window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = process.env.NODE_ENV !== 'production';
 
 const app = createApp(App);