第一步 初始化配置
npm init -y第二步
yarn add json-server第三步 创建db.json文件
{
"account":{
"user":[{
"name":"geyao",
"password":"123456"
}]
}
}启动
json-server --watch .\db.json --port 5000访问
http://localhost:5000/account
去除eslint
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave:false
})









