调整打包路径

This commit is contained in:
fan 2020-09-28 16:32:33 +08:00
parent d087505fea
commit 4eab63d1f3
3 changed files with 5 additions and 4 deletions

View File

@ -1214,6 +1214,7 @@ export const JSXT = [
} }
]; ];
const createRouter = () => new Router({ const createRouter = () => new Router({
base: '/cbtc/',
mode: 'history', // require service support mode: 'history', // require service support
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes

View File

@ -213,7 +213,7 @@ export default {
versionBaseNoShow: VersionBaseNoShow, versionBaseNoShow: VersionBaseNoShow,
mainBodyNoShow: MainBodyNoShow, mainBodyNoShow: MainBodyNoShow,
noQrcodeList: NoQrcodeList, noQrcodeList: NoQrcodeList,
expirationDate: 1605488400000, expirationDate: 1606784400000,
countdown: null, countdown: null,
days: [0, 0, 0], days: [0, 0, 0],
gameOver: false, gameOver: false,
@ -581,7 +581,7 @@ export default {
if (difference <= 0) { if (difference <= 0) {
this.gameOver = true; this.gameOver = true;
} }
const day = Math.floor(difference / (24 * 60 * 60 * 1000)); const day = Math.ceil(difference / (24 * 60 * 60 * 1000));
this.days.push(Math.floor(day / 100)); this.days.push(Math.floor(day / 100));
this.days.push(Math.floor((day % 100) / 10)); this.days.push(Math.floor((day % 100) / 10));
this.days.push(day % 10); this.days.push(day % 10);

View File

@ -21,8 +21,8 @@ module.exports = {
* In most cases please use '/' !!! * In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath * Detail: https://cli.vuejs.org/config/#publicpath
*/ */
publicPath: '/', publicPath: '/cbtc',
outputDir: 'dist', outputDir: 'dist/cbtc',
assetsDir: 'static', // 相对于outputDir的静态资源(js、css、img、fonts)目录 assetsDir: 'static', // 相对于outputDir的静态资源(js、css、img、fonts)目录
lintOnSave: false, lintOnSave: false,
productionSourceMap: false, // 项目打包后是否压缩 productionSourceMap: false, // 项目打包后是否压缩