diff --git a/blossom-editor/src/renderer/components.d.ts b/blossom-editor/src/renderer/components.d.ts index 969323c..e195d98 100644 --- a/blossom-editor/src/renderer/components.d.ts +++ b/blossom-editor/src/renderer/components.d.ts @@ -40,6 +40,8 @@ declare module 'vue' { ElSelect: typeof import('element-plus/es')['ElSelect'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] + ElTable: typeof import('element-plus/es')['ElTable'] + ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] ElTag: typeof import('element-plus/es')['ElTag'] diff --git a/blossom-editor/src/renderer/src/api/sentinel.ts b/blossom-editor/src/renderer/src/api/sentinel.ts index 3e007ea..79fc3c2 100644 --- a/blossom-editor/src/renderer/src/api/sentinel.ts +++ b/blossom-editor/src/renderer/src/api/sentinel.ts @@ -6,4 +6,11 @@ import type { R } from "./request"; */ export const metricLineApi = (params?: object): Promise> => { return rq.get>("/sentinel/metric/line", { params }); +}; + +/** + * 资源列表 + */ +export const resourcesApi = (params?: object): Promise> => { + return rq.get>("/sentinel/resources", { params }); }; \ No newline at end of file diff --git a/blossom-editor/src/renderer/src/assets/utils/format-table.ts b/blossom-editor/src/renderer/src/assets/utils/format-table.ts index 80b2969..ce69b54 100644 --- a/blossom-editor/src/renderer/src/assets/utils/format-table.ts +++ b/blossom-editor/src/renderer/src/assets/utils/format-table.ts @@ -141,8 +141,4 @@ function getPadding(len: number): string { function repeatStr(str: string, count: number): string { return count > 0 ? Array(count + 1).join(str) : ''; -} - -// console.log(formartMarkdownTable(`|张三|列22222| -// |---|---| -// |1|2|`)) \ No newline at end of file +} \ No newline at end of file diff --git a/blossom-editor/src/renderer/src/views/article/ArticleInfo.vue b/blossom-editor/src/renderer/src/views/article/ArticleInfo.vue index 940d233..754b9d7 100644 --- a/blossom-editor/src/renderer/src/views/article/ArticleInfo.vue +++ b/blossom-editor/src/renderer/src/views/article/ArticleInfo.vue @@ -445,7 +445,6 @@ const saveDoc = async (formEl: FormInstance | undefined) => { if (!formEl) return await formEl.validate((valid, _fields) => { if (valid) { - console.log(docForm.value.type, curDocDialogType, docForm); saveLoading.value = true // then 回调 const handleResp = (_: any) => { diff --git a/blossom-editor/src/renderer/src/views/article/ArticleQrCode.vue b/blossom-editor/src/renderer/src/views/article/ArticleQrCode.vue index 6589102..36ae7bc 100644 --- a/blossom-editor/src/renderer/src/views/article/ArticleQrCode.vue +++ b/blossom-editor/src/renderer/src/views/article/ArticleQrCode.vue @@ -53,7 +53,6 @@ const getArticleQrCode = (name: string, id: number) => { articleQrCodeApi({ id: id }).then(resp => { let blob = new Blob([resp.data], { type: "image/png" }) qrcodeImg.value = URL.createObjectURL(blob) - console.log(qrcodeImg.value); qrcodeUrl.value = resp.headers.get('Article-Url') }).finally(() => { isLoading.value = false diff --git a/blossom-editor/src/renderer/src/views/article/EditorTools.vue b/blossom-editor/src/renderer/src/views/article/EditorTools.vue index 4bf5a61..87c160d 100644 --- a/blossom-editor/src/renderer/src/views/article/EditorTools.vue +++ b/blossom-editor/src/renderer/src/views/article/EditorTools.vue @@ -307,7 +307,7 @@