diff --git a/applications/extensions/init_sqlalchemy.py b/applications/extensions/init_sqlalchemy.py index d128c22..c0aff14 100644 --- a/applications/extensions/init_sqlalchemy.py +++ b/applications/extensions/init_sqlalchemy.py @@ -2,8 +2,7 @@ import datetime import os from flask import Flask, request -from flask_sqlalchemy import SQLAlchemy -from flask_sqlalchemy.query import Query as BaseQuery +from flask_sqlalchemy import SQLAlchemy, BaseQuery from flask_marshmallow import Marshmallow from marshmallow import fields from marshmallow.validate import ( diff --git a/templates/system/user/edit.html b/templates/system/user/edit.html index 32f8542..8fbea3a 100644 --- a/templates/system/user/edit.html +++ b/templates/system/user/edit.html @@ -71,48 +71,48 @@ {% include 'system/common/footer.html' %} \ No newline at end of file diff --git a/templates/system/user/profile.html b/templates/system/user/profile.html index 62550bf..9480420 100644 --- a/templates/system/user/profile.html +++ b/templates/system/user/profile.html @@ -65,7 +65,7 @@ formData.append('fileToken', timeStamp) $.ajax({ method: 'post', - url: '/admin/file/upload', //用于文件上传的服务器端请求地址 + url: '/system/file/upload', //用于文件上传的服务器端请求地址 data: formData, processData: false, contentType: false,