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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 的写法

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