a1300399510@qq.com 提交于 2023/04/04 -12:00:01
This commit is contained in:
@@ -41,10 +41,8 @@ function copy(value, message) {
|
||||
// 向用户显示成功消息
|
||||
// 从文档中删除动态创建的输入元素
|
||||
copyInput.remove();
|
||||
|
||||
if (message) this.$message.success(message);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -62,5 +60,16 @@ function closeUnderLoading(that) {
|
||||
that.loading.close();
|
||||
}
|
||||
|
||||
// 时间戳
|
||||
function formattedDate(timestamp) {
|
||||
const date = new Date(timestamp * 1000);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0')
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}`;
|
||||
return formattedDate
|
||||
}
|
||||
|
||||
export { skipUrl, pageStop, pageMove, goTologin, copy, startupUnderLoading, closeUnderLoading }
|
||||
export { skipUrl, pageStop, pageMove, goTologin, copy, startupUnderLoading, closeUnderLoading, formattedDate }
|
||||
Reference in New Issue
Block a user