代码拉取完成,页面将自动刷新
同步操作将从 zhousg/hmmm-backend 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
调试配置 launch.json
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "调试",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "npm",
"windows": {"runtimeExecutable": "npm.cmd"},
"runtimeArgs": ["run", "debug"],
"console": "integratedTerminal",
"protocol": "auto",
"restart": true,
"timeout": 20000,
"port": 9999
}
]
}
npm i
npm run dev
open http://localhost:7001/
npm start
npm stop
npm run lint
to check code style.npm test
to run unit test.npm run autod
to auto detect dependencies upgrade, see autod for more detail.var sql = "SELECT * FROM ?? WHERE ?? = ?";
var inserts = ['users', 'id', userId];
sql = this.app.mysql.format(sql, inserts);
npm install -S sha.js
reqBody.password = shajs('sha256').update(reqBody.password).digest('hex')
authorization
config/config.default.js
config.middleware = [
'authorization'
]
config.authorization = {
whiteList: [
'/base/frame/login'
],
tokenHeaderKey: 'Authorization',
authorizationPre: 'VEA-ADMIN'
}
error_handler
config/config.default.js
config.middleware = [
'errorHandler'
]
config.errorHandler = {
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。