File tree Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Expand file tree Collapse file tree 2 files changed +2
-24
lines changed Original file line number Diff line number Diff line change 55 * @Last Modified time: 2018-12-23 10:57:18
66 */
77
8- VUE_APP_BASE_URL = http://localhost:8089 /
8+ VUE_APP_BASE_URL = http://localhost:6543 /
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export function DateTimeFormat(time) {
111111
112112/**
113113 * 时间戳转标准时间格式
114- * @param {String } timestamp
114+ * @param {String } timestamp
115115 */
116116export function timestampToTime ( timestamp ) {
117117 const date = new Date ( timestamp ) ; // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
@@ -126,17 +126,6 @@ export function timestampToTime(timestamp) {
126126}
127127
128128
129- /**
130- * 获取当前日期 2019年01月01日
131- */
132- export function DateTimeNow ( ) {
133- const date = new Date ( ) ;
134- const Y = `${ date . getFullYear ( ) } 年` ;
135- const M = `${ date . getMonth ( ) + 1 < 10 ? `0${ date . getMonth ( ) + 1 } ` : date . getMonth ( ) + 1 } 月` ;
136- const D = `${ date . getDate ( ) } 日` ;
137- return Y + M + D ;
138- }
139-
140129/**
141130 * 获取当前日期 2019-01-11
142131 */
@@ -147,14 +136,3 @@ export function DateTimeNowSplit() {
147136 const D = `${ date . getDate ( ) } ` ;
148137 return Y + M + D ;
149138}
150-
151- /**
152- * yyyy-MM-dd HH:mm:ss 转 2019年1月1日
153- */
154- export function DateTimeFormat ( time ) {
155- let date = time . split ( ' ' ) [ 0 ] ;
156- date = date . replace ( '-' , '年' ) ;
157- date = date . replace ( '-' , '月' ) ;
158- date += '日' ;
159- return date ;
160- }
You can’t perform that action at this time.
0 commit comments