fix: 修复mock无法使用问题

This commit is contained in:
kailong321200875
2023-12-10 10:11:14 +08:00
parent 81d2dc6a43
commit 319aaef7ee
12 changed files with 148 additions and 134 deletions

View File

@@ -1,6 +1,6 @@
import { SUCCESS_CODE } from '@/constants'
const delay = 1000
const timeout = 1000
const dictObj: Recordable = {
importance: [
@@ -23,9 +23,9 @@ export default [
// 字典接口
{
url: '/mock/dict/list',
method: 'GET',
delay,
body: () => {
method: 'get',
timeout,
response: () => {
return {
code: SUCCESS_CODE,
data: dictObj
@@ -35,9 +35,9 @@ export default [
// 获取某个字典
{
url: '/mock/dict/one',
method: 'GET',
delay,
body: () => {
method: 'get',
timeout,
response: () => {
return {
code: SUCCESS_CODE,
data: [