bookstore's Introduction
bookstore's People
bookstore's Issues
GetBook不需要登录
GetBook不需要登录(不需要token)
上传图片接口
后端需要新增上传图片接口。
增加个人中心
前端增加相应页面,显示自己发布的所有书
后端增加删除已发布的书的接口
增加删除已发布的书
后端提供删除接口,并删除数据库中的数据和相应的图片文件。
前端调用接口。但是前端的逻辑怎么写?click事件,然后每条书的信息中是否包含一个唯一的id,传递这个id和token给后端?
每一本书增加一个详情页
显示书的详细信息,但是现在没什么详细信息。放一个大点的图,显示发布者的id、书名、发布时间等。后期继续做的话,可以增加一些其他信息
前端代码又丑又臃肿
救命。完善逻辑,精简代码。尤其是登录界面的父子组件传递登录状态的逻辑,不忍直视。是否需要用vuex或pinia之类的工具?
请求只发送token,不再发送user_id
token能解析出user_id,无需重复发送
增强图片上传接口
1、接收多种图片格式,上传后转为同一种。(也可在前端限制格式、大小等)
2、图片压缩
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.