浏览代码

bug修复

郭宇琦 2 天之前
父节点
当前提交
0a49608dad
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      utils/util.js

+ 1 - 2
utils/util.js

@@ -2,8 +2,7 @@ import dayjs from 'dayjs'
 import duration from 'dayjs/plugin/duration'
 dayjs.extend(duration);
 const systemInfo = uni.getSystemInfoSync();
-// const Language = systemInfo.language == 'zh_CN' ? 'zh' : 'en' // 'zh' | 'en'
-const Language = 'en' // 'zh' | 'en'
+ const Language = systemInfo.language == 'zh_CN' ? 'zh' : 'en' // 'zh' | 'en'
 const formatTime = (date) => {
 	const year = date.getFullYear();
 	const month = date.getMonth() + 1;