diff --git a/Yi.BBS.Vue3/.env.development b/Yi.BBS.Vue3/.env.development
index 1bd077c8..0216e5bd 100644
--- a/Yi.BBS.Vue3/.env.development
+++ b/Yi.BBS.Vue3/.env.development
@@ -1,2 +1,2 @@
-VITE_APP_BASEAPI="https://www.dev.com"
-VITE_TTT="test"
\ No newline at end of file
+VITE_APP_BASEAPI="/api-dev"
+VITE_APP_URL="http://localhost:19003/api"
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/apis/discussApi.js b/Yi.BBS.Vue3/src/apis/discussApi.js
new file mode 100644
index 00000000..9c748044
--- /dev/null
+++ b/Yi.BBS.Vue3/src/apis/discussApi.js
@@ -0,0 +1,8 @@
+import myaxios from '@/utils/request'
+export function getList(data){
+ return myaxios({
+ url: '/discuss',
+ method: 'get',
+ params:data
+ })
+};
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/apis/plateApi.js b/Yi.BBS.Vue3/src/apis/plateApi.js
new file mode 100644
index 00000000..0362ac3a
--- /dev/null
+++ b/Yi.BBS.Vue3/src/apis/plateApi.js
@@ -0,0 +1,8 @@
+import myaxios from '@/utils/request'
+export function getList(data){
+ return myaxios({
+ url: '/plate',
+ method: 'get',
+ params:data
+ })
+};
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/components/AvatarInfo.vue b/Yi.BBS.Vue3/src/components/AvatarInfo.vue
index 4ab45ca6..ab7c3ec3 100644
--- a/Yi.BBS.Vue3/src/components/AvatarInfo.vue
+++ b/Yi.BBS.Vue3/src/components/AvatarInfo.vue
@@ -23,8 +23,7 @@
import { onMounted } from 'vue';
const props = defineProps(['size', 'src','showWatching','time'])
-onMounted(()=>{
-console.log(props.time,"props.time");})
+
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/components/DisscussCard.vue b/Yi.BBS.Vue3/src/components/DisscussCard.vue
index aa1711db..bf54ccc9 100644
--- a/Yi.BBS.Vue3/src/components/DisscussCard.vue
+++ b/Yi.BBS.Vue3/src/components/DisscussCard.vue
@@ -7,14 +7,13 @@
-
Alibaba Java
- 技术图谱
- 一个适合新手的Java学习平台
+ {{props.title}}
+ {{props.introduction}}
教程
- 2022-12-26 15:01:35
+ {{ props.createTime }}
@@ -35,6 +34,9 @@
import { h, ref } from 'vue'
import { useRouter } from 'vue-router'
import AvatarInfo from './AvatarInfo.vue';
+
+const props = defineProps(['title','introduction','createTime'])
+
const router = useRouter()
const spacer = h(ElDivider, { direction: 'vertical' })
const enterDiscuss = () => {
diff --git a/Yi.BBS.Vue3/src/components/MavonEdit.vue b/Yi.BBS.Vue3/src/components/MavonEdit.vue
index e60281b5..dd255b46 100644
--- a/Yi.BBS.Vue3/src/components/MavonEdit.vue
+++ b/Yi.BBS.Vue3/src/components/MavonEdit.vue
@@ -3,7 +3,7 @@
:subfield="subfield"
:codeStyle="props.codeStyle"
:ishljs="true"
- :style="{minHeight:props.height,maxHeight:'50rem'}"
+ :style="{minHeight:props.height,maxHeight:'100%'}"
class="edit"
@change="change"
>
diff --git a/Yi.BBS.Vue3/src/components/PlateCard.vue b/Yi.BBS.Vue3/src/components/PlateCard.vue
index 85b19435..d698275d 100644
--- a/Yi.BBS.Vue3/src/components/PlateCard.vue
+++ b/Yi.BBS.Vue3/src/components/PlateCard.vue
@@ -8,9 +8,9 @@
class="image"
/>
-
学习教程
+
{{props.name}}
-
+
进入
@@ -19,10 +19,8 @@
-
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/utils/request.js b/Yi.BBS.Vue3/src/utils/request.js
index af4c22a2..e0c5a117 100644
--- a/Yi.BBS.Vue3/src/utils/request.js
+++ b/Yi.BBS.Vue3/src/utils/request.js
@@ -1,8 +1,8 @@
import axios from 'axios';
+
const myaxios = axios.create({
- // baseURL:'/'//
- // baseURL: process.env.VUE_APP_BASE_API, // /dev-apis
+ baseURL:import.meta.env.VITE_APP_BASEAPI,
timeout: 50000,
// transformResponse: [data => {
// const json = JsonBig({
@@ -24,7 +24,7 @@ myaxios.interceptors.request.use(function (config) {
// 响应拦截器
myaxios.interceptors.response.use(function (response) {
- return response;
+ return response.data;
}, function (error) {
return Promise.reject(error);
});
diff --git a/Yi.BBS.Vue3/src/views/AddArticle.vue b/Yi.BBS.Vue3/src/views/AddArticle.vue
index adb86c57..a7d8c6a5 100644
--- a/Yi.BBS.Vue3/src/views/AddArticle.vue
+++ b/Yi.BBS.Vue3/src/views/AddArticle.vue
@@ -1,4 +1,5 @@
+