修改统计出现的bug

master
lemon橪 2021-09-02 15:01:54 +08:00
parent b829d2cd05
commit 6d5428317f
8 changed files with 14 additions and 16 deletions

View File

@ -21,7 +21,7 @@ module.exports = {
},
// Various Dev Server settings
host: '0.0.0.0', // can be overwritten by process.env.HOST
host: 'localhost', // can be overwritten by process.env.HOST
port: 10000, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,

View File

@ -1,9 +1,3 @@
/*
* @Author: LMR
* @Date: 2020-08-11 10:53:53
* @Last Modified by: LMR
* @Last Modified time: 2020-08-11 11:26:19
*/
// 关闭eslint
module.exports = {

View File

@ -96,7 +96,7 @@
<div class="block">
<div class="box">
<span>付款笔数</span>
<span>{{overViewList.paymentsNum || 0 }}</span>
<span>{{overViewList.paymentOrderNum || 0 }}</span>
</div>
</div>

View File

@ -2,7 +2,8 @@ export default {
/**
* @description 配置显示在浏览器标签的title
*/
title: "Lili电商",
title: "lilishop",
/**
* @description token在Cookie中存储的天数默认1天
*/
@ -14,6 +15,8 @@ export default {
*/
useI18n: true,
/**
* @description api请求基础路径
*/

View File

@ -2,12 +2,13 @@ import lazyLoading from './lazyLoading.js';
import Cookies from "js-cookie";
import { result } from './routerJson.js';
import config from '@/config/index'
let util = {
};
util.title = function (title) {
title = title || 'lili 商家后台';
title = title || `${config.title} 商家后台`;
window.document.title = title;
};

View File

@ -1,11 +1,11 @@
import Main from "@/views/Main.vue";
import config from '@/config/index'
// 不作为Main组件的子页面展示的页面单独写如下
export const loginRouter = {
path: "/login",
name: "login",
meta: {
title: "登录 - lili商家后台"
title: `登录 - ${config.title}商家后台`
},
component: () => import("@/views/login.vue")
};

View File

@ -97,7 +97,7 @@
<div class="block">
<div class="box">
<span>付款笔数</span>
<span>{{overViewList.paymentsNum || 0 }}</span>
<span>{{overViewList.paymentOrderNum || 0 }}</span>
</div>
</div>

View File

@ -10,7 +10,7 @@ const resolve = dir => {
* 将开发环境中替换为本地的内容方便处理bug以及开启vueDev
* 我们可以根据环境变量进行相应的处理只有在产品的时候才让插件去自动注入相应的资源文件到html页面
*/
const enableCDN = process.env.NODE_ENV === "production"; // 是否生产环境
const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境
let externals = {
vue: "Vue",
@ -62,8 +62,8 @@ let jsPlugin = [
})
];
// 判断是否需要加载CDN
cdn = enableCDN ? cdn : { css: [], js: [] };
externals = enableCDN ? externals : {};
cdn = enableProduction ? cdn : { css: [], js: [] };
externals = enableProduction ? externals : {};
jsPlugin = enableProduction ? jsPlugin : [];
module.exports = {