|
|
|
@ -1,5 +1,4 @@ |
|
|
|
<script> |
|
|
|
import { increaseFontScale } from "@/libs/utils/index.js"; |
|
|
|
import useStore from "@/store"; |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -7,7 +6,6 @@ export default { |
|
|
|
// console.log("App Launch"); |
|
|
|
const store = useStore(); |
|
|
|
store.fontScale = uni.getStorageSync("fontScale") || 1; |
|
|
|
increaseFontScale(store.fontScale - 1); |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
// console.log("App Show"); |
|
|
|
@ -15,7 +13,6 @@ export default { |
|
|
|
onHide() { |
|
|
|
const store = useStore(); |
|
|
|
uni.setStorageSync("fontScale", store.fontScale); |
|
|
|
// console.log("App Hide"); |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|