chore: bump version to T1.0.2 (versionCode 102)
This commit is contained in:
@ -3,7 +3,7 @@ import { getNotifications } from "./api/notification";
|
||||
|
||||
export default {
|
||||
onLaunch() {
|
||||
console.log("生产流转 T1.0.1 启动");
|
||||
console.log("生产流转 T1.0.2 启动");
|
||||
|
||||
// 无 Token 跳转登录页
|
||||
const token = uni.getStorageSync("access_token");
|
||||
@ -72,7 +72,7 @@ export default {
|
||||
if (!versionStr) return 0;
|
||||
const nums = versionStr.match(/\d+/g);
|
||||
if (!nums) return 0;
|
||||
// 取后三位拼成整数: "T1.0.1" → [1,0,1] → 101
|
||||
// 取后三位拼成整数: "T1.0.2" → [1,0,1] → 101
|
||||
return parseInt(nums.slice(-3).join("").padEnd(3, "0").slice(0, 3), 10);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user