Giter Site home page Giter Site logo

vue-jkbd's Introduction

Vue3 驾考宝典

使用 Vue3 + ts + Ant Design of Vue + Axios 做的在线刷题工具

理论上来说, 给出形如 src/api/api.ts 里的 mockData 的数据就可以跑辣

根对象:

字段 类型 内容 备注
code number 返回值 2000 成功, 其它失败
message string 错误消息 一眼顶针
success boolean 本次操作是否成功 一眼顶针
data object 题目内容

data 对象:

字段 类型 内容 备注
answers array 答案选项 见 answer 对象
comments string 答案说明
correct string 正确答案
id number 题目 id 本题目在数据库中的 id
qid number 本次考试的题目 id 本题目在本次考试中的 id
title string 题目 题目名
type number 题目类型 题目类型
pic string 题目所需的图片 图片 url

answer 对象:

字段 类型 内容 备注
id string 选项 id 形如 A、B、C、D 或 √、×
value string 选项内容 选项本体

type 的可选值:

字段 类型 内容 备注
0 number 判断题
1 number 单选题
2 number 多选题

vue-jkbd's People

Contributors

zhreimu avatar

Stargazers

JianZhong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.