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