|
@@ -378,7 +378,7 @@ const handleUndo = () => {
|
|
|
};
|
|
|
|
|
|
/** 根据移动数据渲染 */
|
|
|
-const renderForMoveData = () => {
|
|
|
+export const renderForMoveData = () => {
|
|
|
if (state.extStyleConfigJson) {
|
|
|
try {
|
|
|
extStyleConfigJson = JSON.parse(state.extStyleConfigJson);
|
|
@@ -386,8 +386,8 @@ const renderForMoveData = () => {
|
|
|
extStyleConfigJson = {};
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if (!extStyleConfigJson || !extStyleConfigJson?.[moveData.partIndex]) return;
|
|
|
+ initSvgId();
|
|
|
const list = extStyleConfigJson?.[moveData.partIndex];
|
|
|
if (list && Array.isArray(list)) {
|
|
|
console.log("🚀 ~ list", list);
|
|
@@ -414,10 +414,10 @@ export default defineComponent({
|
|
|
const isOpen = query.isMove === "1" ? true : false;
|
|
|
console.log("🚀 ~ isOpen:", isOpen);
|
|
|
onMounted(() => {
|
|
|
- if (isOpen) {
|
|
|
- initSvgId();
|
|
|
- }
|
|
|
- renderForMoveData();
|
|
|
+ // if (isOpen) {
|
|
|
+ // initSvgId();
|
|
|
+ // }
|
|
|
+ // renderForMoveData();
|
|
|
const toolBox = document.getElementById("toolBox");
|
|
|
toolBox && document.body.appendChild(toolBox);
|
|
|
});
|