|
@@ -62,7 +62,7 @@
|
|
const tags = computed(() => sceneStore.tags);
|
|
const tags = computed(() => sceneStore.tags);
|
|
const currentTag: ComputedRef<tagType | null> = computed(() => sceneStore.currentTag);
|
|
const currentTag: ComputedRef<tagType | null> = computed(() => sceneStore.currentTag);
|
|
const isClick = ref(false);
|
|
const isClick = ref(false);
|
|
- const showLayer = ref(false);
|
|
|
|
|
|
+ const showLayer = computed(() => sceneStore.currentTagLayer);
|
|
const emit = defineEmits(['setCurrentTag']);
|
|
const emit = defineEmits(['setCurrentTag']);
|
|
|
|
|
|
const isShowTag = computed(() => {
|
|
const isShowTag = computed(() => {
|
|
@@ -73,14 +73,16 @@
|
|
const isMobile = computed(() => browser.isMobile());
|
|
const isMobile = computed(() => browser.isMobile());
|
|
|
|
|
|
const openLayer = (tag: tagType) => {
|
|
const openLayer = (tag: tagType) => {
|
|
- showLayer.value = true;
|
|
|
|
|
|
+ // showLayer.value = true;
|
|
|
|
+ sceneStore.setCurrentTagLayer(true);
|
|
// currentTag.value = tag;
|
|
// currentTag.value = tag;
|
|
emit('setCurrentTag', tag);
|
|
emit('setCurrentTag', tag);
|
|
sceneStore.setCurrentTag(tag);
|
|
sceneStore.setCurrentTag(tag);
|
|
console.error('open-layer');
|
|
console.error('open-layer');
|
|
};
|
|
};
|
|
const closeLayer = () => {
|
|
const closeLayer = () => {
|
|
- showLayer.value = false;
|
|
|
|
|
|
+ // showLayer.value = false;
|
|
|
|
+ sceneStore.setCurrentTagLayer(false);
|
|
// currentTag.value = null;
|
|
// currentTag.value = null;
|
|
emit('setCurrentTag', null);
|
|
emit('setCurrentTag', null);
|
|
sceneStore.setCurrentTag(null);
|
|
sceneStore.setCurrentTag(null);
|
|
@@ -96,7 +98,8 @@
|
|
const goTag = (_, item: tagType) => {
|
|
const goTag = (_, item: tagType) => {
|
|
console.warn('gototag', item.sid);
|
|
console.warn('gototag', item.sid);
|
|
emit('setCurrentTag', item);
|
|
emit('setCurrentTag', item);
|
|
- showLayer.value = false;
|
|
|
|
|
|
+ // showLayer.value = false;
|
|
|
|
+ sceneStore.setCurrentTagLayer(false);
|
|
if (unref(isClick)) {
|
|
if (unref(isClick)) {
|
|
// currentTag.value = null;
|
|
// currentTag.value = null;
|
|
sceneStore.setCurrentTag(null);
|
|
sceneStore.setCurrentTag(null);
|