This commit is contained in:
shidongli 2024-06-27 18:16:29 +08:00
parent 83cb8ef2d8
commit 4026af0a5c
2 changed files with 4 additions and 4 deletions

View File

@ -480,11 +480,10 @@ export default {
//
see(row) {
Cookies.set("id", row.id)
Cookies.set("scriptId", row.scriptId)
this.$router.push({
path: "/knowledge/preview",
query: {
id: row.id,
},
});
},
seescript(row) {

View File

@ -534,6 +534,7 @@ export default {
}
},
mounted() {
// console.log(this.$router.query,'query')
this.initG6Editor();
this.getlist()
@ -813,7 +814,7 @@ export default {
// Blob
const blob = new Blob([bytes], { type: mimeType });
// File
const file = new File([blob], nowdatanew+name + '.jpg', { type: mimeType });
const file = new File([blob], Cookies.get('scriptId') + '.jpg', { type: mimeType });
return file;
},