Skip to content

Commit 036c9b3

Browse files
committed
fix: mp模块的一些小修复
1 parent f848f3b commit 036c9b3

File tree

5 files changed

+11
-20
lines changed

5 files changed

+11
-20
lines changed

src/views/mp/components/wx-music/main.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ defineExpose({
5555
</script>
5656

5757
<style lang="scss" scoped>
58-
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scc */
59-
@import url('../wx-msg/card.scss');
58+
/* 因为 joolun 实现依赖 avue 组件,该页面使用了 card.scss */
59+
@import '../wx-msg/card.scss';
6060
</style>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
>
5252
<WxMaterialSelect
5353
type="image"
54-
:account-id="accountId"
54+
:account-id="accountId!"
5555
@select-material="onMaterialSelected"
5656
/>
5757
</el-dialog>
@@ -93,11 +93,11 @@ const showImageDialog = ref(false)
9393
const fileList = ref<UploadFiles>([])
9494
interface UploadData {
9595
type: UploadType
96-
accountId: number | undefined
96+
accountId: number
9797
}
9898
const uploadData: UploadData = reactive({
9999
type: UploadType.Image,
100-
accountId: accountId
100+
accountId: accountId!
101101
})
102102
103103
/** 素材选择完成事件*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
</el-container>
126126
</template>
127127

128-
<script setup lang="ts">
128+
<script setup lang="ts" name="NewsForm">
129129
import { Editor } from '@/components/Editor'
130130
import { createEditorConfig } from '../editor-config'
131131
import CoverSelect from './CoverSelect.vue'

src/views/mp/draft/index.vue

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import {
7676
7777
const message = useMessage() // 消息
7878
79-
const accountId = ref<number>(0)
79+
const accountId = ref<number>(-1)
8080
provide('accountId', accountId)
8181
8282
const loading = ref(true) // 列表的加载中
@@ -90,16 +90,7 @@ interface QueryParams {
9090
const queryParams: QueryParams = reactive({
9191
pageNo: 1,
9292
pageSize: 10,
93-
accountId: 0
94-
})
95-
96-
interface UploadData {
97-
type: 'image' | 'video' | 'audio'
98-
accountId: number
99-
}
100-
const uploadData: UploadData = reactive({
101-
type: 'image',
102-
accountId: 0
93+
accountId: accountId
10394
})
10495
10596
// ========== 草稿新建 or 修改 ==========
@@ -126,8 +117,8 @@ const onBeforeDialogClose = async (onDone: () => {}) => {
126117
// ======================== 列表查询 ========================
127118
/** 设置账号编号 */
128119
const setAccountId = (id: number) => {
129-
queryParams.accountId = id
130-
uploadData.accountId = id
120+
accountId.value = id
121+
// queryParams.accountId = id
131122
}
132123
133124
/** 查询列表 */

src/views/mp/menu/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ div {
339339
340340
.left {
341341
position: relative;
342-
display: inline-block;
342+
display: block;
343343
float: left;
344344
width: 350px;
345345
height: 715px;

0 commit comments

Comments
 (0)