File tree Expand file tree Collapse file tree 11 files changed +18
-16
lines changed Expand file tree Collapse file tree 11 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ VITE_API_URL=/admin-api
19
19
VITE_BASE_PATH=/
20
20
21
21
# 项目本地运行端口号, 与.vscode/launch.json配合
22
- VITE_PORT=5173
22
+ VITE_PORT=80
23
23
24
24
# 是否删除debugger
25
25
VITE_DROP_DEBUGGER=false
Original file line number Diff line number Diff line change 8
8
"type" : " msedge" ,
9
9
"request" : " launch" ,
10
10
"name" : " Launch Edge against localhost" ,
11
- "url" : " http://localhost:5173 " ,
11
+ "url" : " http://localhost" ,
12
12
"webRoot" : " ${workspaceFolder}/src" ,
13
13
"sourceMaps" : true
14
14
}
Original file line number Diff line number Diff line change 3
3
4
4
<!-- 搜索工作栏 -->
5
5
<ContentWrap >
6
- <WxAccountSelect @change =" (accountId) => accountChanged(accountId)" />
6
+ <!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
7
+ <WxAccountSelect @change =" accountChanged" />
7
8
</ContentWrap >
8
9
9
10
<!-- tab 切换 -->
Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ const emit = defineEmits<{
19
19
(e : ' change' , id : number | undefined ): void
20
20
}>()
21
21
22
- onMounted (async () => {
22
+ onMounted (() => {
23
23
handleQuery ()
24
24
})
25
25
26
26
const handleQuery = async () => {
27
- const data = await MpAccountApi .getSimpleAccountList ()
28
- accountList .value = data
27
+ accountList .value = await MpAccountApi .getSimpleAccountList ()
29
28
// 默认选中第一个
30
29
if (accountList .value .length > 0 ) {
31
30
accountId .value = accountList .value [0 ].id
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<el-form class =" -mb-15px" ref =" queryFormRef" :inline =" true" label-width =" 68px" >
3
3
<el-form-item label =" 公众号" prop =" accountId" >
4
+ <!-- TODO 芋艿:需要将 el-form 和 el-select 解耦 -->
4
5
<el-select
5
6
v-model =" accountId"
6
7
placeholder =" 请选择公众号"
@@ -24,13 +25,12 @@ const queryFormRef = ref()
24
25
25
26
const emit = defineEmits ([' change' ])
26
27
27
- onMounted (async () => {
28
+ onMounted (() => {
28
29
handleQuery ()
29
30
})
30
31
31
32
const handleQuery = async () => {
32
- const data = await MpAccountApi .getSimpleAccountList ()
33
- accountList .value = data
33
+ accountList .value = await MpAccountApi .getSimpleAccountList ()
34
34
// 默认选中第一个
35
35
if (accountList .value .length > 0 ) {
36
36
accountId .value = accountList .value [0 ].id
Original file line number Diff line number Diff line change 3
3
4
4
<!-- 搜索工作栏 -->
5
5
<ContentWrap >
6
- <WxAccountSelect @change =" (accountId) => accountChanged(accountId)" >
6
+ <!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
7
+ <WxAccountSelect @change =" accountChanged" >
7
8
<template #actions >
8
9
<el-button type =" primary" plain @click =" handleAdd" v-hasPermi =" ['mp:draft:create']" >
9
10
<Icon icon =" ep:plus" />新增
Original file line number Diff line number Diff line change 3
3
4
4
<!-- 搜索工作栏 -->
5
5
<ContentWrap >
6
+ <!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
6
7
<WxAccountSelect @change =" (accountId) => accountChanged(accountId)" />
7
8
</ContentWrap >
8
9
Original file line number Diff line number Diff line change 4
4
<ContentWrap >
5
5
<el-form class =" -mb-15px" :inline =" true" label-width =" 68px" >
6
6
<el-form-item label =" 公众号" prop =" accountId" >
7
- <WxMpSelect @change =" (accountId) => accountChange(accountId)" />
8
- </el-form-item >
9
- <el-form-item >
10
- <slot name =" actions" ></slot >
7
+ <WxMpSelect @change =" accountChange" />
11
8
</el-form-item >
12
9
</el-form >
13
10
</ContentWrap >
Original file line number Diff line number Diff line change 2
2
<doc-alert title =" 公众号菜单" url =" https://doc.iocoder.cn/mp/menu/" />
3
3
<!-- 搜索工作栏 -->
4
4
<ContentWrap >
5
- <WxAccountSelect @change =" (accountId) => accountChanged(accountId)" />
5
+ <!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
6
+ <WxAccountSelect @change =" accountChanged" />
6
7
</ContentWrap >
7
8
8
9
<!-- 列表 -->
Original file line number Diff line number Diff line change 3
3
4
4
<!-- 搜索工作栏 -->
5
5
<ContentWrap >
6
- <WxAccountSelect @change =" (accountId) => accountChanged(accountId)" >
6
+ <!-- TODO @芋艿:调整成 el-form 和 WxAccountSelect -->
7
+ <WxAccountSelect @change =" accountChanged" >
7
8
<template #actions >
8
9
<el-button type =" primary" plain @click =" openForm('create')" v-hasPermi =" ['mp:tag:create']" >
9
10
<Icon icon =" ep:plus" class =" mr-5px" /> 新增
You can’t perform that action at this time.
0 commit comments