Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(electricity): sync campus state #174

Merged
merged 2 commits into from
Jan 4, 2025

Conversation

xixiIBN5100
Copy link
Collaborator

No description provided.

import store, { serviceStore } from "@/store";
import Taro from "@tarojs/taro";

const options = ref(["朝晖/屏峰", "莫干山"]);
const selectedIndex = ref(serviceStore.electricity.selectIndex);
const selectedIndex = computed({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为啥要给 store 里面的状态和组件里面的状态分成两份来维护?没见过你这种 getter setter 的写法

@xixiIBN5100 xixiIBN5100 merged commit 1b32058 into zjutjh:master Jan 4, 2025
1 check passed
@xixiIBN5100 xixiIBN5100 deleted the fix/electricity branch January 4, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants