wwf
4 小时以前 50b2839f3e40a0693b51fe0fe1e492ab86043907
优化
2个文件已修改
9 ■■■■■ 已修改文件
src/main.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main.js
@@ -24,9 +24,9 @@
  app.component(key, component)
}
import('vconsole').then((module) => {
  new module.default()
})
// import('vconsole').then((module) => {
//   new module.default()
// })
app.config.globalProperties.$rules = ruleGenerator
app.config.globalProperties.$property = property
vite.config.js
@@ -8,6 +8,9 @@
export default defineConfig({
  base: '/examination/verify',
  plugins: [vue(), vueDevTools()],
  esbuild: {
    drop: ['console', 'debugger']
  },
  define: {
    // 注入构建时间戳到代码中
    '__BUILD_TIME__': JSON.stringify(timestamp)