Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Leobanado
Egg-vue-ssr-blog
提交
748172e4
E
Egg-vue-ssr-blog
项目概览
Leobanado
/
Egg-vue-ssr-blog
与 Fork 源项目一致
Fork自
inscode / NodeJS
通知
1
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
Egg-vue-ssr-blog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
748172e4
编写于
5月 08, 2023
作者:
6
62973268dda6dd3cbb7cce9b
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mon May 8 09:25:00 UTC 2023 inscode
上级
4e4d2672
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
18 deletion
+9
-18
app/lib/db/mysql.js
app/lib/db/mysql.js
+9
-8
config/manifest.json
config/manifest.json
+0
-10
未找到文件。
app/lib/db/mysql.js
浏览文件 @
748172e4
...
@@ -15,16 +15,17 @@ module.exports = class MySQLDB extends Base {
...
@@ -15,16 +15,17 @@ module.exports = class MySQLDB extends Base {
this
.
connection
.
connect
();
this
.
connection
.
connect
();
}
}
getUserById
(
id
)
{
async
getUserById
(
id
)
{
const
sql
=
`select * from user where id =
${
id
}
`
;
const
sql
=
'
SELECT * FROM user WHERE id = ?
'
;
try
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
results
=
await
this
.
connection
.
query
(
sql
,
[
id
]);
this
.
connection
.
query
(
sql
,
function
(
err
,
results
,
fields
)
{
return
results
;
err
?
reject
(
err
)
:
resolve
(
results
);
}
catch
(
err
)
{
})
;
throw
err
;
}
);
}
}
}
getPager
(
collectionName
,
json
)
{
getPager
(
collectionName
,
json
)
{
return
this
.
getUserById
(
1
);
return
this
.
getUserById
(
1
);
}
}
...
...
config/manifest.json
浏览文件 @
748172e4
{
{
"chunk/0.js"
:
"/public/js/chunk/0.js"
,
"chunk/1.js"
:
"/public/js/chunk/1.js"
,
"chunk/2.js"
:
"/public/js/chunk/2.js"
,
"chunk/3.js"
:
"/public/js/chunk/3.js"
,
"chunk/4.js"
:
"/public/js/chunk/4.js"
,
"about/about.js"
:
"/public/js/chunk/about/about.js"
,
"about/about.js"
:
"/public/js/chunk/about/about.js"
,
"admin/home/home.js"
:
"/public/js/chunk/admin/home/home.js"
,
"admin/home/home.js"
:
"/public/js/chunk/admin/home/home.js"
,
"admin/login/login.js"
:
"/public/js/chunk/admin/login/login.js"
,
"admin/login/login.js"
:
"/public/js/chunk/admin/login/login.js"
,
...
@@ -13,15 +8,10 @@
...
@@ -13,15 +8,10 @@
"runtime.js"
:
"/public/js/runtime.js"
,
"runtime.js"
:
"/public/js/runtime.js"
,
"font/element-icons.ttf"
:
"/public/font/element-icons.ttf"
,
"font/element-icons.ttf"
:
"/public/font/element-icons.ttf"
,
"font/element-icons.woff"
:
"/public/font/element-icons.woff"
,
"font/element-icons.woff"
:
"/public/font/element-icons.woff"
,
"font/fontawesome-webfont.eot?v=4.7.0"
:
"/public/font/fontawesome-webfont.eot"
,
"font/fontawesome-webfont.ttf?v=4.7.0"
:
"/public/font/fontawesome-webfont.ttf"
,
"font/fontawesome-webfont.woff?v=4.7.0"
:
"/public/font/fontawesome-webfont.woff"
,
"font/fontawesome-webfont.woff2?v=4.7.0"
:
"/public/font/fontawesome-webfont.woff2"
,
"font/glyphicons-halflings-regular.eot"
:
"/public/font/glyphicons-halflings-regular.eot"
,
"font/glyphicons-halflings-regular.eot"
:
"/public/font/glyphicons-halflings-regular.eot"
,
"font/glyphicons-halflings-regular.ttf"
:
"/public/font/glyphicons-halflings-regular.ttf"
,
"font/glyphicons-halflings-regular.ttf"
:
"/public/font/glyphicons-halflings-regular.ttf"
,
"font/glyphicons-halflings-regular.woff"
:
"/public/font/glyphicons-halflings-regular.woff"
,
"font/glyphicons-halflings-regular.woff"
:
"/public/font/glyphicons-halflings-regular.woff"
,
"font/glyphicons-halflings-regular.woff2"
:
"/public/font/glyphicons-halflings-regular.woff2"
,
"font/glyphicons-halflings-regular.woff2"
:
"/public/font/glyphicons-halflings-regular.woff2"
,
"img/fontawesome-webfont.svg?v=4.7.0"
:
"/public/img/fontawesome-webfont.svg"
,
"img/glyphicons-halflings-regular.svg"
:
"/public/img/glyphicons-halflings-regular.svg"
,
"img/glyphicons-halflings-regular.svg"
:
"/public/img/glyphicons-halflings-regular.svg"
,
"img/loading.gif"
:
"/public/img/loading.gif"
,
"img/loading.gif"
:
"/public/img/loading.gif"
,
"img/logo.png"
:
"/public/img/logo.png"
,
"img/logo.png"
:
"/public/img/logo.png"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录