调整打包路径
This commit is contained in:
parent
d087505fea
commit
4eab63d1f3
@ -1214,6 +1214,7 @@ export const JSXT = [
|
||||
}
|
||||
];
|
||||
const createRouter = () => new Router({
|
||||
base: '/cbtc/',
|
||||
mode: 'history', // require service support
|
||||
scrollBehavior: () => ({ y: 0 }),
|
||||
routes: constantRoutes
|
||||
|
@ -213,7 +213,7 @@ export default {
|
||||
versionBaseNoShow: VersionBaseNoShow,
|
||||
mainBodyNoShow: MainBodyNoShow,
|
||||
noQrcodeList: NoQrcodeList,
|
||||
expirationDate: 1605488400000,
|
||||
expirationDate: 1606784400000,
|
||||
countdown: null,
|
||||
days: [0, 0, 0],
|
||||
gameOver: false,
|
||||
@ -581,7 +581,7 @@ export default {
|
||||
if (difference <= 0) {
|
||||
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) / 10));
|
||||
this.days.push(day % 10);
|
||||
|
@ -21,8 +21,8 @@ module.exports = {
|
||||
* In most cases please use '/' !!!
|
||||
* Detail: https://cli.vuejs.org/config/#publicpath
|
||||
*/
|
||||
publicPath: '/',
|
||||
outputDir: 'dist',
|
||||
publicPath: '/cbtc',
|
||||
outputDir: 'dist/cbtc',
|
||||
assetsDir: 'static', // 相对于outputDir的静态资源(js、css、img、fonts)目录
|
||||
lintOnSave: false,
|
||||
productionSourceMap: false, // 项目打包后是否压缩
|
||||
|
Loading…
Reference in New Issue
Block a user