mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-16 08:01:53 +00:00
本地添加图片成功, add resource 待完善
This commit is contained in:
5
node_modules/evt.js
generated
vendored
5
node_modules/evt.js
generated
vendored
@@ -3,6 +3,11 @@ var User = require('user');
|
||||
|
||||
function log(o) {console.log(o)}
|
||||
var Evt = {
|
||||
port: 8008,
|
||||
localUrl: 'http://127.0.0.1:8008',
|
||||
getImageLocalUrl: function(fileId) {
|
||||
return this.localUrl + '/api/file/getImage?fileId=' + fileId;
|
||||
},
|
||||
// 项目绝对地址
|
||||
getBasePath: function() {
|
||||
return process.cwd();
|
||||
|
Reference in New Issue
Block a user