소스 검색

添加项目编译时间的日志

dev
kim131 4 년 전
부모
커밋
fefa4f4e3a
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -0
      src/App.vue
  2. +2
    -1
      vue.config.js

+ 1
- 0
src/App.vue 파일 보기

@@ -64,6 +64,7 @@ export default {
};
},
created: function () {
console.log('版本编译时间:', process.env.BUILD_TIME);
if (
document.getElementById("Loading") != null &&
document.getElementById("Loading").nodeName != null &&


+ 2
- 1
vue.config.js 파일 보기

@@ -1,5 +1,6 @@
const path = require('path');
const webpack = require('webpack');
const dayjs = require('dayjs');

module.exports = {
configureWebpack: {
@@ -24,7 +25,7 @@ module.exports = {
NODE_ENV: '"development"',
API_HOST: '"/api/"',
// API_HOST: '"http://47.104.91.134:9000/api/"',
BUILD_TIME: `"${dayjs().format('YYYY.MM.DD HH:mm')}"`,
}
}),
],


불러오는 중...
취소
저장