Skip to content

Commit

Permalink
Disable show weather info
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleMoonlight committed Sep 21, 2024
1 parent 3ba84fd commit 07aad2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/SettingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ onMounted(() => {
</div>
<div class="setting-pane-body">
<CardContainer :card-name="'天气'" :card-des="'开启时可以在导航页面左上角查看当前位置或者指定位置的天气信息。'">
<SettingItem :label="'显示天气'" :type="'switch'" :onoff="settingStore.showWeather" :disabled="true"
<SettingItem :label="'显示天气'" :type="'switch'" :onoff="false" :disabled="true"
@turn-switch="settingStore.showWeather = !settingStore.showWeather">
</SettingItem>
</CardContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/stores/settingStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useSettingStore = defineStore('setting', {
searchOpenMode: 'new',
autoFocusSearchInput: false,
autoCleanSearchInput: false,
showWeather: false,
showWeather: true,
weatherLocationMode: 'custom',
webAppGroupIndex: 0,
circularSliding: true,
Expand Down

0 comments on commit 07aad2d

Please sign in to comment.