2024.5.15 后台优化
This commit is contained in:
parent
a91bc86bf2
commit
a8ddcf4b86
|
@ -141,7 +141,7 @@ export default {
|
|||
this.Quill = null;
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
init() {
|
||||
const editor = this.$refs.editor;
|
||||
this.Quill = new Quill(editor, this.options);
|
||||
|
@ -213,7 +213,7 @@ export default {
|
|||
// 获取光标所在位置
|
||||
let length = quill.getSelection().index;
|
||||
// 插入图片 res.url为服务器返回的图片地址
|
||||
quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName);
|
||||
quill.insertEmbed(length, "image", res.fileName);
|
||||
// 调整光标到最后
|
||||
quill.setSelection(length + 1);
|
||||
} else {
|
||||
|
@ -241,8 +241,8 @@ export default {
|
|||
this.$modal.msgError("上传失败,请重试");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
},
|
||||
handlePreview(file){
|
||||
var link = document.createElement("a"); //定义一个a标签
|
||||
|
|
|
@ -55,9 +55,9 @@
|
|||
</el-form-item>
|
||||
</el-form>
|
||||
<!-- 底部 -->
|
||||
<div class="el-login-footer">
|
||||
<span>Copyright © 2018-2024 ruoyi.vip All Rights Reserved.</span>
|
||||
</div>
|
||||
<!-- <div class="el-login-footer">-->
|
||||
<!-- <span>Copyright © 2018-2024 ruoyi.vip All Rights Reserved.</span>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -72,8 +72,8 @@ export default {
|
|||
return {
|
||||
codeUrl: "",
|
||||
loginForm: {
|
||||
username: "admin",
|
||||
password: "admin123",
|
||||
username: "",
|
||||
password: "",
|
||||
rememberMe: false,
|
||||
code: "",
|
||||
uuid: ""
|
||||
|
|
|
@ -195,8 +195,10 @@
|
|||
|
||||
<el-form-item label="语言标签" prop="tags">
|
||||
<el-select v-model="form.categoryTags" clearable>
|
||||
<el-option v-for="(item, index) in tagList" :key="index"
|
||||
:label="item.tagName" :value="item.tagId"></el-option>
|
||||
<el-option label="中文" value="0" :key='0'></el-option>
|
||||
<el-option label="英文" value="1" :key='1'></el-option>
|
||||
<el-option label="韩文" value="2" :key='2'></el-option>
|
||||
<el-option label="日文" value="3" :key='3'></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
|
Loading…
Reference in New Issue