Skip to content

Commit

Permalink
chore: update upload dialog (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme authored Aug 30, 2024
1 parent 0730e54 commit db77113
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import CodemirrorEditor from '@/views/CodemirrorEditor.vue'
</template>

<style lang="less">
// 仿 uniapp 外层全屏
html,
body,
#app {
Expand Down
6 changes: 2 additions & 4 deletions src/components/CodemirrorEditor/UploadImgDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ function saveQiniuConfiguration() {
&& formQiniu.value.secretKey
&& formQiniu.value.bucket
&& formQiniu.value.domain
&& formQiniu.value.region
)
) {
ElMessage.error(`七牛云 Kodo 参数配置不全`)
Expand Down Expand Up @@ -447,8 +446,8 @@ function uploadImage(params) {
<el-form-item label="Bucket 对应域名" :required="true">
<el-input v-model.trim="formQiniu.domain" placeholder="如:https://images.123ylb.cn" />
</el-form-item>
<el-form-item label="存储区域" :required="true">
<el-input v-model.trim="formQiniu.region" placeholder="如:z2" />
<el-form-item label="存储区域" :required="false">
<el-input v-model.trim="formQiniu.region" placeholder="如:z2,可不填" />
</el-form-item>
<el-form-item label="存储路径" :required="false">
<el-input v-model.trim="formQiniu.path" placeholder="如:img,可不填,默认为根目录" />
Expand Down Expand Up @@ -527,7 +526,6 @@ function uploadImage(params) {
width: 55%;
min-width: 640px;
min-height: 615px;
// 消除固定的行内样式,配合 flex 布局居中元素
margin: auto !important;
}
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export * from './theme'

export const prefix = `MD`

const isMac = window.navigator.platform === `MacIntel`
const isMac = /Mac/i.test(navigator.userAgent)

export const ctrlKey = isMac ? `Cmd` : `Ctrl`
export const altKey = `Alt`
Expand Down

0 comments on commit db77113

Please sign in to comment.