update:升级版本号

This commit is contained in:
hrz
2025-09-05 13:58:26 +08:00
parent a7007f5ae2
commit 4a802e00e4
3 changed files with 23 additions and 30 deletions
@@ -237,7 +237,7 @@ public interface Constant {
/** /**
* 版本号 * 版本号
*/ */
public static final String VERSION = "0.7.6"; public static final String VERSION = "0.7.7";
/** /**
* 无效固件URL * 无效固件URL
@@ -113,20 +113,20 @@ async function saveServerBaseUrl() {
clearAllCacheAfterUrlChange() clearAllCacheAfterUrlChange()
uni.showModal({ uni.showModal({
title: '重启应用', title: '重启应用',
content: '服务端地址已保存并清空缓存,是否立即重启生效?', content: '服务端地址已保存并清空缓存,是否立即重启生效?',
confirmText: '立即重启', confirmText: '立即重启',
cancelText: '稍后', cancelText: '稍后',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
restartApp() restartApp()
} }
else { else {
toast.success('已保存,可稍后手动重启应用') toast.success('已保存,可稍后手动重启应用')
} }
}, },
}) })
} }
// 重置为 env 默认 // 重置为 env 默认
function resetServerBaseUrl() { function resetServerBaseUrl() {
@@ -222,7 +222,7 @@ function showAbout() {
title: `关于${import.meta.env.VITE_APP_TITLE}`, title: `关于${import.meta.env.VITE_APP_TITLE}`,
content: `${import.meta.env.VITE_APP_TITLE}\n\n基于 Vue.js 3 + uni-app 构建的跨平台移动端管理应用,为小智ESP32智能硬件提供设备管理、智能体配置等功能。\n\n© 2025 xiaozhi-esp32-server`, content: `${import.meta.env.VITE_APP_TITLE}\n\n基于 Vue.js 3 + uni-app 构建的跨平台移动端管理应用,为小智ESP32智能硬件提供设备管理、智能体配置等功能。\n\n© 2025 xiaozhi-esp32-server`,
title: `关于小智智控台`, title: `关于小智智控台`,
content: `小智智控台\n\n基于 Vue.js 3 + uni-app 构建的跨平台移动端管理应用,为小智ESP32智能硬件提供设备管理、智能体配置等功能。\n\n© 2025 xiaozhi-esp32-server 0.7.6`, content: `小智智控台\n\n基于 Vue.js 3 + uni-app 构建的跨平台移动端管理应用,为小智ESP32智能硬件提供设备管理、智能体配置等功能。\n\n© 2025 xiaozhi-esp32-server 0.7.7`,
showCancel: false, showCancel: false,
confirmText: '确定', confirmText: '确定',
}) })
@@ -263,17 +263,10 @@ onMounted(async () => {
<view class="mb-[24rpx]"> <view class="mb-[24rpx]">
<view class="w-full rounded-[16rpx] border border-[#eeeeee] bg-[#f5f7fb] overflow-hidden"> <view class="w-full rounded-[16rpx] border border-[#eeeeee] bg-[#f5f7fb] overflow-hidden">
<wd-input <wd-input v-model="baseUrlInput" type="text" clearable :maxlength="200"
v-model="baseUrlInput"
type="text"
clearable
:maxlength="200"
placeholder="输入服务端地址,如 https://example.com/xiaozhi" placeholder="输入服务端地址,如 https://example.com/xiaozhi"
custom-class="!border-none !bg-transparent h-[88rpx] px-[24rpx] items-center" custom-class="!border-none !bg-transparent h-[88rpx] px-[24rpx] items-center"
input-class="text-[28rpx] text-[#232338]" input-class="text-[28rpx] text-[#232338]" @input="validateUrl" @blur="validateUrl" />
@input="validateUrl"
@blur="validateUrl"
/>
</view> </view>
<text v-if="urlError" class="mt-[8rpx] block text-[24rpx] text-[#ff4d4f]"> <text v-if="urlError" class="mt-[8rpx] block text-[24rpx] text-[#ff4d4f]">
{{ urlError }} {{ urlError }}
@@ -371,7 +364,7 @@ onMounted(async () => {
<!-- 底部安全距离 --> <!-- 底部安全距离 -->
<!-- 底部安全距离 --> <!-- 底部安全距离 -->
<view style="height: env(safe-area-inset-bottom);" /> <view style="height: env(safe-area-inset-bottom);" />
</view> </view>
</view> </view>
</template> </template>
+1 -1
View File
@@ -5,7 +5,7 @@ from config.config_loader import load_config
from config.settings import check_config_file from config.settings import check_config_file
from datetime import datetime from datetime import datetime
SERVER_VERSION = "0.7.6" SERVER_VERSION = "0.7.7"
_logger_initialized = False _logger_initialized = False