diff --git a/Yi.Bbs.Vue3/src/apis/dictionaryApi.js b/Yi.Bbs.Vue3/src/apis/dictionaryApi.js new file mode 100644 index 00000000..23a0b926 --- /dev/null +++ b/Yi.Bbs.Vue3/src/apis/dictionaryApi.js @@ -0,0 +1,13 @@ +import request from "@/config/axios/service"; + +/** + * 根据字典类型获取字典列表 + * @param {*} dicType 字典类型 + * @returns + */ +export function getDictionaryList(dicType) { + return request({ + url: `/dictionary/dic-type/${dicType}`, + method: "get", + }); +} diff --git a/Yi.Bbs.Vue3/src/components/ScrollbarInfo.vue b/Yi.Bbs.Vue3/src/components/ScrollbarInfo.vue index 77c2b628..2f4c9e9b 100644 --- a/Yi.Bbs.Vue3/src/components/ScrollbarInfo.vue +++ b/Yi.Bbs.Vue3/src/components/ScrollbarInfo.vue @@ -1,28 +1,51 @@ - + - - 推荐 - + + + {{ item.dictLabel.slice(0, 5) + "..." }} + + + {{ item.dictLabel }} + + - - \ No newline at end of file + diff --git a/Yi.Bbs.Vue3/src/main.js b/Yi.Bbs.Vue3/src/main.js index 2864f4e4..a79ed59d 100644 --- a/Yi.Bbs.Vue3/src/main.js +++ b/Yi.Bbs.Vue3/src/main.js @@ -5,6 +5,7 @@ import App from "./App.vue"; import router from "./router"; import piniaPluginPersistedstate from "pinia-plugin-persistedstate"; +import "element-plus/dist/index.css"; import "./assets/main.css"; import "@/assets/styles/index.scss"; // global css
- 推荐 -