Skip to content

Commit 5c58bc4

Browse files
committed
REVIEW 公众号的草稿管理
1 parent 7997614 commit 5c58bc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/views/mp/draft/components/CoverSelect.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ import WxMaterialSelect from '@/views/mp/components/wx-material-select/main.vue'
6565
import { getAccessToken } from '@/utils/auth'
6666
import type { UploadFiles, UploadProps, UploadRawFile } from 'element-plus'
6767
import { NewsItem } from './types'
68-
6968
const message = useMessage()
7069
71-
const UPLOAD_URL = 'http://localhost:8000/upload/' //import.meta.env.VITE_BASE_URL + '/admin-api/mp/material/upload-permanent' // 上传永久素材的地址
70+
// const UPLOAD_URL = 'http://localhost:8000/upload/' // 上传永久素材的地址
71+
const UPLOAD_URL = import.meta.env.VITE_BASE_URL + '/admin-api/mp/material/upload-permanent' // 上传永久素材的地址
7272
const HEADERS = { Authorization: 'Bearer ' + getAccessToken() } // 设置上传的请求头部
7373
7474
const props = defineProps<{
@@ -109,7 +109,6 @@ const onMaterialSelected = (item: any) => {
109109
newsItem.value.thumbUrl = item.url
110110
}
111111
112-
// ======================== 文件上传 ========================
113112
const onBeforeUpload: UploadProps['beforeUpload'] = (rawFile: UploadRawFile) => {
114113
const isType = ['image/jpeg', 'image/png', 'image/gif', 'image/bmp', 'image/jpg'].includes(
115114
rawFile.type

src/views/mp/draft/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
</ContentWrap>
4747

4848
<!-- 添加或修改草稿对话框 -->
49+
<!-- TODO @Dhb52:是不是整个做成一个组件 -->
4950
<el-dialog
5051
:title="isCreating ? '新建图文' : '修改图文'"
5152
width="80%"

0 commit comments

Comments
 (0)