mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-09-01 14:53:07 +08:00
589d2a6e52
- Added a new build argument `COMMIT_ID_ARG` to pass the commit ID during the Docker build process. - Updated the Dockerfile to set an environment variable `VITE_FRONTEND_COMMIT` with the commit ID. - Enhanced the Vite configuration to resolve the frontend commit ID from the environment or Git. - Modified the SystemInfo component to display the frontend commit ID in the UI. - Implemented a version info preparation step in the GitHub Actions workflow to capture the commit ID.
9 lines
550 B
TypeScript
9 lines
550 B
TypeScript
/// <reference types="vite/client" />
|
|
// 配置这个文件是 解决错误:找不到模块“@/views/login/index.vue”或其相应的类型声明。ts(2307)
|
|
// 这段代码告诉 TypeScript,所有以 .vue 结尾的文件都是 Vue 组件,可以通过 import 语句进行导入。这样做通常可以解决无法识别模块的问题。
|
|
declare module '*.vue' {
|
|
import { Component } from 'vue'; const component: Component; export default component;
|
|
}
|
|
|
|
declare const __FRONTEND_VERSION__: string;
|
|
declare const __FRONTEND_COMMIT__: string; |