diff --git a/CHANGELOG.md b/CHANGELOG.md index 140caf3..2a50dde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - | 标题栏角色栏全局任务组件新建 | [0500cb4](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/0500cb4) - | 插件数据获取 | [5b91bdc](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/5b91bdc) - | 存token | [b8a178d](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/b8a178d) + - | 定期任务面板骨架屏添加 | [b2698c0](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/b2698c0) - | 角色栏实现 | [94cd671](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/94cd671) - | 模拟接口测试 | [69e7931](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/69e7931) - | 配置默认插件接口 | [f0c177d](https://dd.tall.wiki/gitea/wally/TALL-MUI-3/commits/f0c177d) diff --git a/src/apis/plugin.js b/src/apis/plugin.js index cb952b4..caeb006 100644 --- a/src/apis/plugin.js +++ b/src/apis/plugin.js @@ -1,9 +1,11 @@ const apiUrl = process.env.VUE_APP_API_URL; const mock = `${apiUrl}/defaultwbs`; +const plugin = `${apiUrl}/pluginshop/plugin`; const install = (Vue, vm) => { vm.$u.api = { ...vm.$u.api } || {}; - vm.$u.api.getPlugin = param => vm.$u.post(`${mock}/plugin`, { param }); + vm.$u.api.getPlugin = param => vm.$u.post(`${mock}/plugin`, param); + vm.$u.api.getOtherPlugin = param => vm.$u.post(`${plugin}/query`, param); }; export default { install }; diff --git a/src/components/Globals/Globals.vue b/src/components/Globals/Globals.vue index e33a2e1..95c208d 100644 --- a/src/components/Globals/Globals.vue +++ b/src/components/Globals/Globals.vue @@ -3,14 +3,14 @@ - + @@ -31,16 +31,16 @@ export default { props: { plugins: { type: Array, default: () => [] } }, data() { return { - loading: true, + // loading: true, pluginId: 0, styleType: 0, task: null, }; }, - mounted() { - setTimeout(() => (this.loading = false), 2000); - }, + // mounted() { + // setTimeout(() => (this.loading = false), 2000); + // }, computed: mapState('home', ['isShrink']), methods: { getClass(col, row) { diff --git a/src/components/Plugin/Plugin.vue b/src/components/Plugin/Plugin.vue index 8be59a6..53b2180 100644 --- a/src/components/Plugin/Plugin.vue +++ b/src/components/Plugin/Plugin.vue @@ -1,6 +1,16 @@