提交 f0c33d9f 编写于 作者: tao.wu's avatar tao.wu

图片域名动态

上级 007d1966
......@@ -83,6 +83,7 @@
<script>
import fetch from '@/utils/fetch'
import { envConfig } from '@/utils/env-config'
import { uploadImg } from '@/utils/index'
import { getQiniuToken, submitFeedback } from '@/utils/patients/patientsapi'
export default {
......@@ -103,7 +104,7 @@
]
},
addImageDisabled: false,
imgLimit: 3,// 最多允许上传的图片个数
imgLimit: 5,// 最多允许上传的图片个数
action: 'https://upload.qiniup.com/',
token: '',
headers: {
......@@ -149,7 +150,6 @@
submitFrom(formName){
this.$refs[formName].validate((valid) => {
if (valid) {
console.log(this.urlString)
const data = {
input_text: this.form.opinion,
system_type: 'workStation',
......@@ -187,7 +187,8 @@
},
handleRemove(){},
handleSuccess(response, file, fileList){
this.urlString += 'https://test1-file.yunqueyi.com/s' + response.key + ';'
const imgDomin = uploadImg();
this.urlString += `${imgDomin}/${response.key};`
this.$message.success(`上传成功!`);
if(fileList.length>=this.imgLimit){
this.addImageDisabled = true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册