|
@@ -61,14 +61,17 @@ export default defineComponent({
|
|
const loadingRef = ref();
|
|
const loadingRef = ref();
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getList();
|
|
getList();
|
|
- const obv = new IntersectionObserver((entries) => {
|
|
|
|
- if (entries[0].isIntersecting) {
|
|
|
|
- if (data.finish || data.loading) return;
|
|
|
|
- forms.page++;
|
|
|
|
- getList();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- obv.observe(loadingRef.value?.$el);
|
|
|
|
|
|
+ if(loadingRef.value){
|
|
|
|
+
|
|
|
|
+ const obv = new IntersectionObserver((entries) => {
|
|
|
|
+ if (entries[0].isIntersecting) {
|
|
|
|
+ if (data.finish || data.loading) return;
|
|
|
|
+ forms.page++;
|
|
|
|
+ getList();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ obv.observe(loadingRef.value?.$el);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
const handleOpenNotaion = (item: any) => {
|
|
const handleOpenNotaion = (item: any) => {
|
|
window.parent.postMessage(
|
|
window.parent.postMessage(
|
|
@@ -80,7 +83,9 @@ export default defineComponent({
|
|
);
|
|
);
|
|
};
|
|
};
|
|
const productSvg = (abc: string, id: string) => {
|
|
const productSvg = (abc: string, id: string) => {
|
|
- const a = ABCJS.renderAbc(id, abc, {selectTypes: false, add_classes: true});
|
|
|
|
|
|
+ if(abc) {
|
|
|
|
+ const a = ABCJS.renderAbc(id, abc, {selectTypes: false, add_classes: true});
|
|
|
|
+ }
|
|
};
|
|
};
|
|
return () => (
|
|
return () => (
|
|
<div class={styles.wrap}>
|
|
<div class={styles.wrap}>
|
|
@@ -114,7 +119,10 @@ export default defineComponent({
|
|
<img
|
|
<img
|
|
class={styles.bottomBtn}
|
|
class={styles.bottomBtn}
|
|
src={getImage("icon_29_3.png")}
|
|
src={getImage("icon_29_3.png")}
|
|
- onClick={() => handleDelte(item)}
|
|
|
|
|
|
+ onClick={(e: Event) => {
|
|
|
|
+ e.stopPropagation();
|
|
|
|
+ handleDelte(item)
|
|
|
|
+ }}
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|