diff --git a/controllers/home.py b/controllers/home.py index e9d027bde6024ee83dad202666af0e6b5a3f354d..4827e8c2cbf3ce589c74b5703056756cfe17e551 100644 --- a/controllers/home.py +++ b/controllers/home.py @@ -137,6 +137,12 @@ def custom_static_libs(filename): # print(filename) return send_from_directory('libs', filename) +@home.route('/js/') +def custom_static_js(filename): + # 自定义静态目录 {{ url_for('custom_static',filename='help.txt')}} + # print(filename) + return send_from_directory('js', filename) + # @home.route('/txt/') # def get_txt_files(name): # base_path = 'txt' diff --git a/js/version.txt b/js/version.txt index 465effb256cde77a34ac8289b5154f2c209fe0e2..f0838b2a995579335882482682011f634388fd6e 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.36beta1 \ No newline at end of file +3.9.36beta2 \ No newline at end of file