12345678910111213141516171819 |
- import { ref } from "vue";
- import { defineStore } from "pinia";
- export const useDetailStore = defineStore("detail", () => {
- const searchVisible = ref(false);
- const searchKey = ref("");
- /**
- * 是否显示简介
- */
- const introductionVisible = ref(false);
- const openSearchDrawer = (key = "") => {
- searchKey.value = key;
- searchVisible.value = true;
- };
- return { searchVisible, searchKey, introductionVisible, openSearchDrawer };
- });
|