Skip to content

Commit

Permalink
perf(settings): remove unused theme logic
Browse files Browse the repository at this point in the history
  • Loading branch information
j10ccc committed Nov 12, 2024
1 parent a5a1dc0 commit ea1d06f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/pages/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,12 @@ import Taro from "@tarojs/taro";
import { Card, ThemeConfig, TitleBar, WList, WListItem } from "@/components";
import { settingText } from "@/constants/copywriting";
import { getCopyRight } from "@/utils";
import { ref, watch } from "vue";
import { serviceStore } from "@/store";
import { ref } from "vue";
import "./index.scss";
const isEmpty = ref(true);
const emptyText = settingText.empty;
const copyright = getCopyRight();
const themeMode = ref(serviceStore.theme.themeMode);
const currentTab = ref(themeMode);
watch(() => serviceStore.theme.themeMode, (newValue) => {
currentTab.value = newValue;
themeMode.value = newValue;
});
const nav2ChangePassword = () => {
Taro.navigateTo({ url: "/pages/setting/changePassword/index" });
Expand Down

0 comments on commit ea1d06f

Please sign in to comment.