明树Git Lab

Commit f5510be3 authored by zfp1's avatar zfp1

update

parent cbcc9790
Pipeline #104375 passed with stage
in 3 seconds
......@@ -313,7 +313,7 @@ async function setUserRole(req, res, next) {
async function logout(req, res, next) {
try {
await ioRedis.del(`token:${user.token}`);
await ioRedis.del(`token:${req.headers.authorization}`);
return res.sendData({})
} catch (error) {
next(error);
......
......@@ -56,9 +56,9 @@ const ProjectJczt = sequelize.define('ProjectJczt', {
// 同步模型到数据库(创建表)
ProjectJczt.sync({
// force: false,
force: false,
// force: true ,//会删除已存在表并重新创建
alter: true
// alter: true
})
.then(() => {
console.log('ProjectJczt 表同步成功');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment