修改统计出现的bug
							parent
							
								
									b829d2cd05
								
							
						
					
					
						commit
						6d5428317f
					
				|  | @ -21,7 +21,7 @@ module.exports = { | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|     // Various Dev Server settings
 |     // 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
 |     port: 10000, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
 | ||||||
|     autoOpenBrowser: false, |     autoOpenBrowser: false, | ||||||
|     errorOverlay: true, |     errorOverlay: true, | ||||||
|  |  | ||||||
|  | @ -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
 | //  关闭eslint
 | ||||||
| module.exports = { | module.exports = { | ||||||
|  |  | ||||||
|  | @ -96,7 +96,7 @@ | ||||||
|               <div class="block"> |               <div class="block"> | ||||||
|                 <div class="box"> |                 <div class="box"> | ||||||
|                   <span>付款笔数</span> |                   <span>付款笔数</span> | ||||||
|                   <span>{{overViewList.paymentsNum  || 0 }}</span> |                   <span>{{overViewList.paymentOrderNum  || 0 }}</span> | ||||||
|                 </div> |                 </div> | ||||||
|               </div> |               </div> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,7 +2,8 @@ export default { | ||||||
|   /** |   /** | ||||||
|    * @description 配置显示在浏览器标签的title |    * @description 配置显示在浏览器标签的title | ||||||
|    */ |    */ | ||||||
|   title: "Lili电商", |   title: "lilishop", | ||||||
|  | 
 | ||||||
|   /** |   /** | ||||||
|    * @description token在Cookie中存储的天数,默认1天 |    * @description token在Cookie中存储的天数,默认1天 | ||||||
|    */ |    */ | ||||||
|  | @ -14,6 +15,8 @@ export default { | ||||||
|    */ |    */ | ||||||
|   useI18n: true, |   useI18n: true, | ||||||
| 
 | 
 | ||||||
|  |    | ||||||
|  | 
 | ||||||
|   /** |   /** | ||||||
|    * @description api请求基础路径 |    * @description api请求基础路径 | ||||||
|    */ |    */ | ||||||
|  |  | ||||||
|  | @ -2,12 +2,13 @@ import lazyLoading from './lazyLoading.js'; | ||||||
| import Cookies from "js-cookie"; | import Cookies from "js-cookie"; | ||||||
| import { result } from './routerJson.js'; | import { result } from './routerJson.js'; | ||||||
| 
 | 
 | ||||||
|  | import config from '@/config/index' | ||||||
| let util = { | let util = { | ||||||
| 
 | 
 | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| util.title = function (title) { | util.title = function (title) { | ||||||
|     title = title || 'lili 商家后台'; |     title = title || `${config.title} 商家后台`; | ||||||
|     window.document.title = title; |     window.document.title = title; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,11 +1,11 @@ | ||||||
| import Main from "@/views/Main.vue"; | import Main from "@/views/Main.vue"; | ||||||
| 
 | import config from '@/config/index' | ||||||
| // 不作为Main组件的子页面展示的页面单独写,如下
 | // 不作为Main组件的子页面展示的页面单独写,如下
 | ||||||
| export const loginRouter = { | export const loginRouter = { | ||||||
|   path: "/login", |   path: "/login", | ||||||
|   name: "login", |   name: "login", | ||||||
|   meta: { |   meta: { | ||||||
|     title: "登录 - lili商家后台" |     title: `登录 - ${config.title}商家后台` | ||||||
|   }, |   }, | ||||||
|   component: () => import("@/views/login.vue") |   component: () => import("@/views/login.vue") | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | @ -97,7 +97,7 @@ | ||||||
|               <div class="block"> |               <div class="block"> | ||||||
|                 <div class="box"> |                 <div class="box"> | ||||||
|                   <span>付款笔数</span> |                   <span>付款笔数</span> | ||||||
|                   <span>{{overViewList.paymentsNum  || 0 }}</span> |                   <span>{{overViewList.paymentOrderNum  || 0 }}</span> | ||||||
|                 </div> |                 </div> | ||||||
|               </div> |               </div> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ const resolve = dir => { | ||||||
|  * 将开发环境中替换为本地的内容,方便处理bug以及开启vueDev |  * 将开发环境中替换为本地的内容,方便处理bug以及开启vueDev | ||||||
|  * 我们可以根据环境变量进行相应的处理,只有在产品的时候,才让插件去自动注入相应的资源文件到html页面 |  * 我们可以根据环境变量进行相应的处理,只有在产品的时候,才让插件去自动注入相应的资源文件到html页面 | ||||||
|  */ |  */ | ||||||
| const enableCDN = process.env.NODE_ENV === "production"; // 是否生产环境
 | const enableProduction = process.env.NODE_ENV === "production"; // 是否生产环境
 | ||||||
| 
 | 
 | ||||||
| let externals = { | let externals = { | ||||||
|   vue: "Vue", |   vue: "Vue", | ||||||
|  | @ -62,8 +62,8 @@ let jsPlugin = [ | ||||||
|   }) |   }) | ||||||
| ]; | ]; | ||||||
| // 判断是否需要加载CDN
 | // 判断是否需要加载CDN
 | ||||||
| cdn = enableCDN ? cdn : { css: [], js: [] }; | cdn = enableProduction ? cdn : { css: [], js: [] }; | ||||||
| externals = enableCDN ? externals : {}; | externals = enableProduction ? externals : {}; | ||||||
| jsPlugin = enableProduction ? jsPlugin : []; | jsPlugin = enableProduction ? jsPlugin : []; | ||||||
| 
 | 
 | ||||||
| module.exports = { | module.exports = { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue