|
@@ -56,7 +56,7 @@
|
|
|
import { changeUrl } from './common';
|
|
|
|
|
|
import ShowTag from './show-tag.vue';
|
|
|
-
|
|
|
+ import { defaultStyles } from './constant';
|
|
|
import { ComputedRef } from 'vue';
|
|
|
import { watch } from 'vue';
|
|
|
const sceneStore = useSceneStore();
|
|
@@ -183,11 +183,18 @@
|
|
|
});
|
|
|
});
|
|
|
const getUrl = (icon) => {
|
|
|
- let url =
|
|
|
- icon == '' || !icon ? getApp().resource.getAppURL('images/tag_icon_default.svg') : icon;
|
|
|
- // debugger;
|
|
|
- return changeUrl(url);
|
|
|
+ // let url = icon == '' || !icon ? getApp().resource.getAppURL('images/tag_icon_default.svg') : icon
|
|
|
+ let url;
|
|
|
+ if (styleList.value.includes(icon)) {
|
|
|
+ // url = getApp().resource.getAppURL('images/tag/' + icon)
|
|
|
+ url = getApp().resource.getAppURL('images/tag_icon_default.svg');
|
|
|
+ } else {
|
|
|
+ url =
|
|
|
+ icon == '' || !icon ? getApp().resource.getAppURL('images/tag/hotpot-default.svg') : icon;
|
|
|
+ }
|
|
|
+ return changeUrl(url, true);
|
|
|
};
|
|
|
+ const styleList = computed(() => defaultStyles.value.map((i) => i.name));
|
|
|
|
|
|
const focusTag = (tag: tagType) => {
|
|
|
nextTick(() => {
|