Browse Source

update

master
unknown 4 years ago
parent
commit
f52aa95e9a
3 changed files with 5 additions and 7 deletions
  1. +3
    -3
      src/services/system.js
  2. +2
    -2
      src/views/components_web/distWork/distWork.vue
  3. +0
    -2
      vue.config.js

+ 3
- 3
src/services/system.js View File

@@ -51,10 +51,10 @@ const system = {
* todo * todo
* 通知系统进入当前的工作空间 * 通知系统进入当前的工作空间
*/ */
entryProject: safeCall((projectId, userId, fileChangeHandler) => {
entryProject: safeCall((projName, userId, fileChangeHandler) => {
const socket = io('init'); const socket = io('init');
socket.on('open', () => { socket.on('open', () => {
socket.send([projectId, userId].join('|'));
socket.send([userId, projName].join('|'));
socket.close(); socket.close();
}); });
const watchSocket = io('subscriptionFileChange'); const watchSocket = io('subscriptionFileChange');
@@ -115,7 +115,7 @@ const system = {
socket.close(); socket.close();
// {"size":"88.69","currentSize":"88.69","unit":"KiB","process":100,"hash":""} // {"size":"88.69","currentSize":"88.69","unit":"KiB","process":100,"hash":""}
// {"size":"","currentSize":"","unit":"","process":100,"hash":"QmPJ9i4z5UdoQpLH1DrkhZiTZra2rGicXiPabiLw4LvTmX"} // {"size":"","currentSize":"","unit":"","process":100,"hash":"QmPJ9i4z5UdoQpLH1DrkhZiTZra2rGicXiPabiLw4LvTmX"}
const maybeFile = fileList.find(iFile => `${iFile.archName}${iFile.extension ? `.${iFile.extension}` : ''}`);
const maybeFile = fileList.find(iFile => `${iFile.archName}${iFile.extension ? `.${iFile.extension}` : ''}` === fileName);
if(maybeFile) { // 更新同名文件 if(maybeFile) { // 更新同名文件
const copyFile = firstCharToUpperCase({ ...maybeFile, ipfsCid: hash, ModifyUserId: sessionStorage.userId }); const copyFile = firstCharToUpperCase({ ...maybeFile, ipfsCid: hash, ModifyUserId: sessionStorage.userId });




+ 2
- 2
src/views/components_web/distWork/distWork.vue View File

@@ -1647,8 +1647,8 @@ function mergeFolderList(plainFolderList, userHash) {
const folder = firstCharToLowerCase(upperFolder); const folder = firstCharToLowerCase(upperFolder);
hash[folder.id] = folder; hash[folder.id] = folder;
folder.listChildren = []; folder.listChildren = [];
folder.listUser = folder.oldGeneralId.split(',').filter(a => a);
folder.manageUser = (folder.oldManager === '0' ? '' : folder.oldManager).split(',').filter(a => a);
folder.listUser = folder.oldGeneralId.split(',').filter(a => a).map(id => userHash[id]);
folder.manageUser = (folder.oldManager === '0' ? '' : folder.oldManager).split(',').filter(a => a).map(id => userHash[id]);
const parentFolderId = folder.superId; const parentFolderId = folder.superId;
// headList.push(folder); // headList.push(folder);
if(parentFolderId === rootFolderId) { if(parentFolderId === rootFolderId) {


+ 0
- 2
vue.config.js View File

@@ -24,7 +24,6 @@ module.exports = {
NODE_ENV: '"development"', NODE_ENV: '"development"',
API_HOST: '"/api/"', API_HOST: '"/api/"',
// API_HOST: '"http://47.104.91.134:9000/api/"', // API_HOST: '"http://47.104.91.134:9000/api/"',
IS_CLIENT: false,
} }
}), }),
], ],
@@ -33,7 +32,6 @@ module.exports = {
'/api/pms': { '/api/pms': {
// target: 'http://47.104.91.134:8089', // target: 'http://47.104.91.134:8089',
target:'http://10.240.33.159:8089', target:'http://10.240.33.159:8089',

changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
}, },


Loading…
Cancel
Save