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