diff --git a/buyer/config/index.js b/buyer/config/index.js
index 2189ed6d..a7463abb 100644
--- a/buyer/config/index.js
+++ b/buyer/config/index.js
@@ -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,
diff --git a/buyer/vue.config.js b/buyer/vue.config.js
index 078d9a0b..4a80058b 100644
--- a/buyer/vue.config.js
+++ b/buyer/vue.config.js
@@ -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 = {
diff --git a/manager/src/views/statistics/order.vue b/manager/src/views/statistics/order.vue
index 5233bfc5..f8c39bc7 100644
--- a/manager/src/views/statistics/order.vue
+++ b/manager/src/views/statistics/order.vue
@@ -96,7 +96,7 @@
付款笔数
- {{overViewList.paymentsNum || 0 }}
+ {{overViewList.paymentOrderNum || 0 }}
diff --git a/seller/src/config/index.js b/seller/src/config/index.js
index 5b81c21c..177a5471 100644
--- a/seller/src/config/index.js
+++ b/seller/src/config/index.js
@@ -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请求基础路径
*/
diff --git a/seller/src/libs/util.js b/seller/src/libs/util.js
index 8de25d1f..cf931c22 100644
--- a/seller/src/libs/util.js
+++ b/seller/src/libs/util.js
@@ -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;
};
diff --git a/seller/src/router/router.js b/seller/src/router/router.js
index 41f99bb2..6e774975 100644
--- a/seller/src/router/router.js
+++ b/seller/src/router/router.js
@@ -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")
};
diff --git a/seller/src/views/statistics/order.vue b/seller/src/views/statistics/order.vue
index 1a4a8f2d..b393f9d3 100644
--- a/seller/src/views/statistics/order.vue
+++ b/seller/src/views/statistics/order.vue
@@ -97,7 +97,7 @@
付款笔数
- {{overViewList.paymentsNum || 0 }}
+ {{overViewList.paymentOrderNum || 0 }}
diff --git a/seller/vue.config.js b/seller/vue.config.js
index 7387d6e7..689bde1e 100644
--- a/seller/vue.config.js
+++ b/seller/vue.config.js
@@ -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 = {