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 {
|
export default {
|
||||||
onLaunch() {
|
onLaunch() {
|
||||||
console.log("生产流转 T1.0.1 启动");
|
console.log("生产流转 T1.0.2 启动");
|
||||||
|
|
||||||
// 无 Token 跳转登录页
|
// 无 Token 跳转登录页
|
||||||
const token = uni.getStorageSync("access_token");
|
const token = uni.getStorageSync("access_token");
|
||||||
@ -72,7 +72,7 @@ export default {
|
|||||||
if (!versionStr) return 0;
|
if (!versionStr) return 0;
|
||||||
const nums = versionStr.match(/\d+/g);
|
const nums = versionStr.match(/\d+/g);
|
||||||
if (!nums) return 0;
|
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);
|
return parseInt(nums.slice(-3).join("").padEnd(3, "0").slice(0, 3), 10);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
"name" : "Track",
|
"name" : "Track",
|
||||||
"appid" : "__UNI__B572616",
|
"appid" : "__UNI__B572616",
|
||||||
"description" : "Track - 生产流转管理",
|
"description" : "Track - 生产流转管理",
|
||||||
"versionName" : "T1.0.1",
|
"versionName" : "T1.0.2",
|
||||||
"versionCode" : "100",
|
"versionCode" : 102,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"vueVersion" : "3",
|
"vueVersion" : "3",
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<view class="header">
|
<view class="header">
|
||||||
<text class="logo">🏭</text>
|
<text class="logo">🏭</text>
|
||||||
<text class="title">Track</text>
|
<text class="title">Track</text>
|
||||||
<text class="version">T1.0.1</text>
|
<text class="version">T1.0.2</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form">
|
<view class="form">
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<button class="logout-btn" @tap="handleLogout">退出登录</button>
|
<button class="logout-btn" @tap="handleLogout">退出登录</button>
|
||||||
<view class="version">T1.0.1</view>
|
<view class="version">T1.0.2</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user