lifanagju_citu hace 6 meses
padre
commit
ad3e893e56
Se han modificado 3 ficheros con 8 adiciones y 2 borrados
  1. 2 2
      .env.development
  2. 2 0
      src/App.vue
  3. 4 0
      src/utils/testVersion.js

+ 2 - 2
.env.development

@@ -1,7 +1,7 @@
 NODE_ENV = 'development'
 
-# 版本号 v24.11.15.1818
-VITE_VERSION = 'v24.11.17.2347'
+# 版本号 v 1818
+VITE_VERSION = 'v24.11.15.1819'
 
 VITE_APP_TITLE = 门墩儿
 

+ 2 - 0
src/App.vue

@@ -2,6 +2,7 @@
 import { RouterView } from 'vue-router'
 import { ref, onMounted, onUnmounted, nextTick } from 'vue'
 import Confirm from '@/plugins/confirm'
+import { testVersionFun } from './utils/testVersionFun'
 import axios from 'axios'
 
 const timer = ref(null)
@@ -13,6 +14,7 @@ function open () {
 }
 onMounted(() => {
   nextTick(() => {
+    testVersionFun()
     console.log('baseurl:', import.meta.env?.VITE_BASE_URL, 'version:', import.meta.env?.VITE_VERSION) // 打印
     const process_ENV = process?.env?.NODE_ENV || ''
     if (process_ENV === 'production' || process_ENV === 'development') {

+ 4 - 0
src/utils/testVersion.js

@@ -0,0 +1,4 @@
+export const testVersionFun = () => {
+  console.log('23456', 789)
+  console.log('VITE_VERSION', import.meta.env?.VITE_VERSION)
+}