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) { see(row) {
Cookies.set("id", row.id) Cookies.set("id", row.id)
Cookies.set("scriptId", row.scriptId)
this.$router.push({ this.$router.push({
path: "/knowledge/preview", path: "/knowledge/preview",
query: {
id: row.id,
},
}); });
}, },
seescript(row) { seescript(row) {

View File

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