diff --git a/src/api/market/myapi.js b/src/api/market/myapi.js new file mode 100644 index 0000000..8bf5624 --- /dev/null +++ b/src/api/market/myapi.js @@ -0,0 +1,10 @@ +import request from "@/utils/request"; + +export function selectmyapiList(data){ + return request({ + url:"/market/myapi/list", + method: "POST", + data: data + }) +} + diff --git a/src/router/index.js b/src/router/index.js index 3d64cd3..718fccc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -91,7 +91,19 @@ export const constantRoutes = [ meta: {title: '个人中心', icon: 'user'} } ] - } + }, + { + path: '/apitest', + component: Layout, + children: [ + { + path: 'index', + name: 'apitest', + component: () => import('@/views/market/apitest/index.vue'), + meta: { title: 'API文档', icon: 'form' } + } + ] + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/market/apitest/index.vue b/src/views/market/apitest/index.vue new file mode 100644 index 0000000..331550d --- /dev/null +++ b/src/views/market/apitest/index.vue @@ -0,0 +1,131 @@ + + + + diff --git a/src/views/market/myapi/index.vue b/src/views/market/myapi/index.vue index 183fa39..0bc71cb 100644 --- a/src/views/market/myapi/index.vue +++ b/src/views/market/myapi/index.vue @@ -8,8 +8,7 @@
- - + - + 提交 -
新增数据
+ + + + +
+ + + {{myapi.productName}}} + + + {{myapi.productPrice}}} + + + {{myapi.productContent}}} + + +
+ 测试 +
+
+
+
+
+
+
@@ -35,7 +58,10 @@