This commit is contained in:
2025-03-17 10:39:28 +08:00
parent f0b144f4d7
commit e49a3fc3d8
3 changed files with 7 additions and 4 deletions

View File

@@ -2,6 +2,9 @@ import Vue from 'vue'
import App from './App'
import qs from 'qs'
Vue.prototype.$baseFontSize = function () {
if (uni.getStorageSync("fontSize") != 3.5 && uni.getStorageSync("fontSize") != 4) {
uni.setStorageSync("fontSize", 3.5) //改变字体大小
}
console.log('这是一个全局方法')
return uni.getStorageSync("fontSize")
}
@@ -76,7 +79,7 @@ uni.getSystemInfo({
Vue.prototype.iosHidden = false; //ios临时隐藏听书
Vue.prototype.iosHide = true;
} else {
Vue.prototype.iosHide = true;