fix:版本号使用常量1.0.4,与manifest.json同步维护

This commit is contained in:
97694732@qq.com 2026-06-15 13:39:44 +08:00
parent 3cfcd53b73
commit 0f0d5d369d

View File

@ -130,19 +130,14 @@
</template>
<script>
// manifest.json uni-app
var manifestData = {}
try {
manifestData = require('../../manifest.json')
} catch (e) {
manifestData = { versionName: '1.0.0' }
}
// manifest.json versionName
var APP_VERSION = '1.0.4'
export default {
data() {
return {
currentTab: 'home',
appVersion: manifestData.versionName || '1.0.0'
appVersion: APP_VERSION
}
},