chore: update upload dialog (#373)

This commit is contained in:
Libin YANG 2024-08-30 19:04:29 +08:00 committed by GitHub
parent 0730e548cf
commit db77113d6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 9 deletions

6
package-lock.json generated
View File

@ -3799,9 +3799,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001653", "version": "1.0.30001655",
"resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001653.tgz", "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz",
"integrity": "sha512-XGWQVB8wFQ2+9NZwZ10GxTYC5hk0Fa+q8cSkr0tgvMhYhMHP/QC+WTgrePMDBWiWc/pV+1ik82Al20XOK25Gcw==", "integrity": "sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {

View File

@ -7,7 +7,6 @@ import CodemirrorEditor from '@/views/CodemirrorEditor.vue'
</template> </template>
<style lang="less"> <style lang="less">
// 仿 uniapp
html, html,
body, body,
#app { #app {

View File

@ -235,7 +235,6 @@ function saveQiniuConfiguration() {
&& formQiniu.value.secretKey && formQiniu.value.secretKey
&& formQiniu.value.bucket && formQiniu.value.bucket
&& formQiniu.value.domain && formQiniu.value.domain
&& formQiniu.value.region
) )
) { ) {
ElMessage.error(`七牛云 Kodo 参数配置不全`) ElMessage.error(`七牛云 Kodo 参数配置不全`)
@ -447,8 +446,8 @@ function uploadImage(params) {
<el-form-item label="Bucket 对应域名" :required="true"> <el-form-item label="Bucket 对应域名" :required="true">
<el-input v-model.trim="formQiniu.domain" placeholder="如https://images.123ylb.cn" /> <el-input v-model.trim="formQiniu.domain" placeholder="如https://images.123ylb.cn" />
</el-form-item> </el-form-item>
<el-form-item label="存储区域" :required="true"> <el-form-item label="存储区域" :required="false">
<el-input v-model.trim="formQiniu.region" placeholder="如z2" /> <el-input v-model.trim="formQiniu.region" placeholder="如z2,可不填" />
</el-form-item> </el-form-item>
<el-form-item label="存储路径" :required="false"> <el-form-item label="存储路径" :required="false">
<el-input v-model.trim="formQiniu.path" placeholder="如img可不填默认为根目录" /> <el-input v-model.trim="formQiniu.path" placeholder="如img可不填默认为根目录" />
@ -527,7 +526,6 @@ function uploadImage(params) {
width: 55%; width: 55%;
min-width: 640px; min-width: 640px;
min-height: 615px; min-height: 615px;
// flex
margin: auto !important; margin: auto !important;
} }

View File

@ -4,7 +4,7 @@ export * from './theme'
export const prefix = `MD` 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 ctrlKey = isMac ? `Cmd` : `Ctrl`
export const altKey = `Alt` export const altKey = `Alt`