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 5
5
* @Last Modified time: 2018-12-23 10:57:18
6
6
*/
7
7
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) {
111
111
112
112
/**
113
113
* 时间戳转标准时间格式
114
- * @param {String } timestamp
114
+ * @param {String } timestamp
115
115
*/
116
116
export function timestampToTime ( timestamp ) {
117
117
const date = new Date ( timestamp ) ; // 时间戳为10位需*1000,时间戳为13位的话不需乘1000
@@ -126,17 +126,6 @@ export function timestampToTime(timestamp) {
126
126
}
127
127
128
128
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
-
140
129
/**
141
130
* 获取当前日期 2019-01-11
142
131
*/
@@ -147,14 +136,3 @@ export function DateTimeNowSplit() {
147
136
const D = `${ date . getDate ( ) } ` ;
148
137
return Y + M + D ;
149
138
}
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