mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-20 01:58:04 +08:00
init
This commit is contained in:
37
src/renderer/pages/plugins/index.vue
Normal file
37
src/renderer/pages/plugins/index.vue
Normal file
@@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<div>
|
||||
<webview style="width: 100%;height: 100vh" id="webview" :src="path"></webview>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import {getlocalDataFile} from '../../../common/utils';
|
||||
import { remote } from 'electron';
|
||||
// import process from 'child_process';
|
||||
|
||||
export default {
|
||||
name: "index.vue",
|
||||
data() {
|
||||
return {
|
||||
path: `File://${this.$route.query.sourceFile}`,
|
||||
preload: path.join(process.cwd(), './api/index.js')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log(1111, this.$route.query)
|
||||
// const webview = document.querySelector('webview')
|
||||
// webview.addEventListener('dom-ready', () => {
|
||||
// webview.openDevTools()
|
||||
// })
|
||||
},
|
||||
beforeRouteUpdate() {
|
||||
this.path = `File://${this.$route.query.sourceFile}`
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user