This commit is contained in:
flaskfarm
2022-10-14 15:38:44 +09:00
parent e0ab051c29
commit 206b116bf4
5 changed files with 9 additions and 21 deletions

View File

@@ -55,7 +55,8 @@ class PluginManager:
# 2018-09-04
try:
plugin_path = F.SystemModelSetting.get('plugin_dev_path')
#plugin_path = F.SystemModelSetting.get('plugin_dev_path')
plugin_path = F.config['path_dev']
if plugin_path != None and plugin_path != '':
if os.path.exists(plugin_path):
sys.path.insert(0, plugin_path)

View File

@@ -62,24 +62,6 @@ def robot_to_root():
return send_from_directory('', 'static/file/robots.txt')
@F.app.route("/")
@@ -126,3 +108,8 @@ def upload():
F.logger.error(traceback.format_exc())
return jsonify('fail')
# 3.10에서 이거 필수
@F.socketio.on('connect', namespace=f'/framework')
def connect():
pass

View File

@@ -14,6 +14,7 @@ $(document).ready(function(){
var protocol = window.location.protocol;
var frameSocket = io.connect(protocol + "//" + document.domain + ":" + location.port + "/framework");
console.log(frameSocket);
frameSocket.on('notify', function(data){
$.notify({

View File

@@ -1 +1 @@
VERSION="4.0.1"
VERSION="4.0.2"