bianjiang 10 months ago
parent
commit
ad9ad89117

+ 1 - 1
scripts/deployHtmlToServer.js

@@ -23,7 +23,7 @@ fs.writeFileSync(nativePath + path.sep + 'share.html', shareHtml);
 // var consoleHtml = fs.readFileSync('dist/console.html');
 // var consoleHtml = fs.readFileSync('dist/console.html');
 // fs.writeFileSync(nativePath + path.sep + 'console.html', consoleHtml);
 // fs.writeFileSync(nativePath + path.sep + 'console.html', consoleHtml);
 
 
-var serverPath = `/var/www/projects/queenshow`;
+var serverPath = `/var/www/html/projects/queenshow`;
 
 
 var ftpUtils = new sftp({
 var ftpUtils = new sftp({
     remotePath: serverPath,
     remotePath: serverPath,

+ 1 - 1
src/modules/resource/components/Collection/innerListController.tsx

@@ -54,7 +54,7 @@ export function InnerListController(
   ctrl.onEdit = async (id: string) => {
   ctrl.onEdit = async (id: string) => {
     const _params = new URLSearchParams(decodeURIComponent(location.search));
     const _params = new URLSearchParams(decodeURIComponent(location.search));
     const host = _params.get("host");
     const host = _params.get("host");
-    const url = `${location.origin}${getPathname()}editor.html?host=${host}#/?id=${id}&isWk=ture`;
+    const url = `${location.origin}${getPathname()}editor.html#/host=${host}?id=${id}&isWk=ture`;
     location.href = url;
     location.href = url;
   };
   };
 
 

+ 2 - 1
src/modules/resource/controllers/PromotionController.ts

@@ -19,7 +19,8 @@ export class PromotionController {
     //   return;
     //   return;
     // }
     // }
 
 
-    const url = `${location.origin}${getPathname()}editor.html?host=${host}#/?id=${item._id}`;
+    const url = `${location.origin}${getPathname()}editor.html#/?host=${host}&id=${item._id}`;
+    debugger
     location.href = url;
     location.href = url;
   }
   }
   onPreview(item: any) {
   onPreview(item: any) {