diff --git a/app/api/goods/index.js b/app/api/goods/index.js
new file mode 100644
index 0000000..7f9adea
--- /dev/null
+++ b/app/api/goods/index.js
@@ -0,0 +1,16 @@
+import { getHttp } from '~/api/http.js'
+
+export async function artworkList(data) {
+ const http = getHttp()
+ return await http('/api/v1/m/auction/default/artwork/list', {
+ method: 'POST',
+ body: data,
+ })
+}
+export async function defaultDetail(data) {
+ const http = getHttp()
+ return await http('/api/v1/m/auction/default/detail', {
+ method: 'POST',
+ body: data,
+ })
+}
\ No newline at end of file
diff --git a/app/api/http.js b/app/api/http.js
index db74379..85ca5bd 100644
--- a/app/api/http.js
+++ b/app/api/http.js
@@ -2,6 +2,7 @@
import { useRuntimeConfig } from '#app'
import { ofetch } from 'ofetch'
import {message} from '@/components/x-message/useMessage.js'
+import {authStore} from "@/stores/auth/index.js";
let httpStatusErrorHandler
let http
@@ -12,15 +13,14 @@ export function setupHttp() {
const config = useRuntimeConfig()
const baseURL = config.public.NUXT_PUBLIC_API_BASE
-
+ const {token}= authStore()
http = ofetch.create({
baseURL,
headers: { 'Content-Type': 'application/json' },
async onRequest({ options }) {
- const token = localStorage.getItem('token')
options.headers = {
...options.headers,
- ...(token && { Authorization: token }),
+ Authorization:token.value
}
},
async onResponse({ response }) {
diff --git a/app/components/AppHeader.vue b/app/components/AppHeader.vue
index 9a047ac..4c058c7 100644
--- a/app/components/AppHeader.vue
+++ b/app/components/AppHeader.vue
@@ -1,6 +1,6 @@
```
diff --git a/app/layouts/default.vue b/app/layouts/default.vue
index c20d956..c29e7ce 100644
--- a/app/layouts/default.vue
+++ b/app/layouts/default.vue
@@ -8,6 +8,6 @@
\ No newline at end of file
diff --git a/app/pages/home/components/Cescribe/index.vue b/app/pages/home/components/Cescribe/index.vue
new file mode 100644
index 0000000..20594f0
--- /dev/null
+++ b/app/pages/home/components/Cescribe/index.vue
@@ -0,0 +1,15 @@
+
+
+
+