Skip to content

Commit 53d4912

Browse files
committed
[feature]{develop}: 去掉部分重复代码 修改开发环境端口号
1 parent 76ccc0b commit 53d4912

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
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/

src/utils/index.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function DateTimeFormat(time) {
111111

112112
/**
113113
* 时间戳转标准时间格式
114-
* @param {String} timestamp
114+
* @param {String} timestamp
115115
*/
116116
export 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-
}

0 commit comments

Comments
 (0)