فهرست منبع

添加版本信息

任一存 1 سال پیش
والد
کامیت
4235452a77
2فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 2 0
      src/main.js
  2. 2 0
      vue.config.js

+ 2 - 0
src/main.js

@@ -7,6 +7,8 @@ import App from "./app.vue";
 import browser from "@/utils/browser";
 import i18n, { getLocale, setI18nLanguage, loadLocaleMessages } from './i18n'
 
+console.log(`version: ${process.env.VUE_APP_VERSION}`)
+
 if (!window.location.search) {
   window.location.href = "/index.html?m=eur-KJ-z5ZEV22AeU&pose=pano:408,qua:-0.006,0.6299,0.0049,0.7766";
 } else if (!browser.hasURLParam("pose") && browser.getURLParam("m") == "eur-KJ-z5ZEV22AeU") {

+ 2 - 0
vue.config.js

@@ -1,3 +1,5 @@
+process.env.VUE_APP_VERSION = require('./package.json').version
+
 const { defineConfig } = require("@vue/cli-service");
 module.exports = defineConfig({
   transpileDependencies: true,