feat: 项目结构调整|新增依赖
This commit is contained in:
23
src/renderer/views/home/index.vue
Normal file
23
src/renderer/views/home/index.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="home">
|
||||
<h2 class="text-2xl font-bold mb-4">欢迎使用智念科技 AI</h2>
|
||||
<div class="bg-white p-6">
|
||||
<button
|
||||
class="bg-blue-300 hover:bg-blue-500 text-white px-4 py-2 rounded mr-2"
|
||||
@click="openBaidu"
|
||||
>
|
||||
打开百度
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const openBaidu = () => {
|
||||
(window as any).ipcAPI?.openBaidu()
|
||||
|
||||
// 发送日志
|
||||
(window as any).ipcAPI?.logToMain('info', '打开百度')
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user