Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有MongoDB配置吗 #27

Open
1765659645 opened this issue Mar 28, 2022 · 8 comments
Open

没有MongoDB配置吗 #27

1765659645 opened this issue Mar 28, 2022 · 8 comments

Comments

@1765659645
Copy link

config中没有找到,代码中也仅看到了云开发相关代码

@Tiang-88
Copy link

我也很迷惑,不会整,您登陆界面做好了吗?

@1765659645
Copy link
Author

还没有,做登录页面简单,但现在是不知道数据库结构,而且后端代码里看到的是用云开发的逻辑,好像没有涉及到mongo数据库,如果想自己做的话,可以先不做登录页面,注掉登录相关,根据页面ui和代码写后端+设计数据库

@Tiang-88
Copy link

这个意思不可部署到云服务嘛?必须的云开发?

@Tiang-88
Copy link

现在设置题目必须的登陆

@Tiang-88
Copy link

这是鱼皮在另外一个链接的回复:用的是 mongodb + cms 管理后台,没写 sql 语句,可以从前端的 ts 类型定义文件中构造出数据库设计。完整设计信息我会在自己的知识星球里公开(dogyupi.com)

@1765659645
Copy link
Author

1765659645 commented Mar 28, 2022

emm,反正我没看到怎么配置后端数据库,你要是想看哪个页面的话,就找那个页面的权限判断改一下,暂时能看到,我刚尝试过了

@1765659645
Copy link
Author

image
export function getCurrentUser() {
return {
_id: '1',
avatarUrl: '',
nickName: '测试',
gender: 0,
jobStatus: 0,
city: '青岛',
email: '176565954@1231.com',
province: 'string',
country: '中国',
language: 'zh',
authority: 'admin',
extraAuthority: { tags: [] },
favourQuestionIds: [],
thumbCommentIds: [],
interests: [],
score: 0,
profile: '',
_createTime: Date.now(),
_updateTime: Date.now(),
};
image
像我这样写一下就可以登录上去了 ,动态码随便填6位,不过登上去切换页面有报错,没研究

@Tiang-88
Copy link

ooo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants