vue-wiring-diagram 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ import {portsOptions} from "../portsOptions.js";
|
|
|
82
82
|
import {Document, View, ArrowDown} from "@element-plus/icons-vue";
|
|
83
83
|
import WiringDiagramPreview from "../preview/index.vue";
|
|
84
84
|
import ImageManagement from "../image-control/image-management.vue";
|
|
85
|
-
import {get} from "packages/http.js";
|
|
85
|
+
import {get, instance} from "packages/http.js";
|
|
86
86
|
import {
|
|
87
87
|
clipboard,
|
|
88
88
|
keyboard,
|
|
@@ -291,7 +291,7 @@ const initStencil = () => {
|
|
|
291
291
|
const image = group?.pictureList.map(item => {
|
|
292
292
|
const nodeOption = {
|
|
293
293
|
shape: 'image',
|
|
294
|
-
imageUrl: item?.imageUrl,
|
|
294
|
+
imageUrl: instance.defaults.baseURL + item?.imageUrl,
|
|
295
295
|
ports: portsOptions,
|
|
296
296
|
width: 64,
|
|
297
297
|
height: 64,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<el-table-column label="名称" prop="imageName" align="center"></el-table-column>
|
|
15
15
|
<el-table-column label="图片" prop="imageUrl" align="center">
|
|
16
16
|
<template #default="scope">
|
|
17
|
-
<img :src="scope.row.imageUrl" alt="" style="width: 64px; height: 64px;">
|
|
17
|
+
<img :src="instance.defaults.baseURL + scope.row.imageUrl" alt="" style="width: 64px; height: 64px;">
|
|
18
18
|
</template>
|
|
19
19
|
</el-table-column>
|
|
20
20
|
<el-table-column label="排序" prop="sort" align="center"></el-table-column>
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
import {onMounted, reactive} from "vue";
|
|
63
63
|
import groupForm from "./group-form.vue";
|
|
64
64
|
import imageForm from "./image-form.vue";
|
|
65
|
-
import {get, del} from "../../http.js";
|
|
65
|
+
import {get, del, instance} from "../../http.js";
|
|
66
66
|
import {ElMessage, ElMessageBox} from "element-plus";
|
|
67
67
|
|
|
68
68
|
// 数据集
|