Browse Source

fix: 修复问题

河畔一角 1 week ago
parent
commit
f002e911af
1 changed files with 2 additions and 3 deletions
  1. 2 3
      controller/pages.controller.js

+ 2 - 3
controller/pages.controller.js

@@ -152,10 +152,9 @@ module.exports = {
       }
       // 开启模型服务后,需要复制模型
       if (ENABLE_MODEL_SERVICE) {
-        let res = null;
         // 获取项目模型列表
-        res = await request.post(
-          `${MODEL_BASE_URL}/api/model/copy`,
+        const res = await request.post(
+          `${MODEL_BASE_URL}/api/model/model/copy`,
           JSON.stringify({
             oldProjectId: String(page.projectId),
             newProjectId: String(projectId),