Commit 81033937 authored by rocosen's avatar rocosen

fix:bat

parent 3c190625
......@@ -31,3 +31,5 @@ npm-debug.log.*
# eslint ignores hidden directories by default:
# https://github.com/eslint/eslint/issues/8429
!.erb
src/
\ No newline at end of file
......@@ -3,7 +3,6 @@ powershell -Command "net use O: \\aliyun\data\1b520eb8a56147299ad803f9f87b6297 1
powershell -Command "net use P: \\baiduyun\data\1b520eb8a56147299ad803f9f87b6297 123456 /user:cloudam /persistent:yes"
powershell -Command "net use * /y /del"
md C:\test
mklink /D C:\test\aliyun \\aliyun\ali\1b520eb8a56147299ad803f9f87b6297
mklink /D C:\test\baiduyun \\baiduyun\data\1b520eb8a56147299ad803f9f87b6297
subst Z: C:\test
Z:
mklink /D aliyun \\aliyun\ali\1b520eb8a56147299ad803f9f87b6297
mklink /D baiduyun \\baiduyun\data\1b520eb8a56147299ad803f9f87b6297
\ No newline at end of file
......@@ -2,7 +2,7 @@ import { MemoryRouter as Router, Routes, Route } from 'react-router-dom';
import icon from '../../assets/icon.svg';
import './App.css';
import path from 'path';
import { rootPath } from 'electron-root-path';
const rootPath = require('electron-root-path').rootPath;
const { shell } = require('electron')
const location = path.join(rootPath.substring(0, rootPath.length - 8), './assets/bat/mount.bat');
const Hello = () => {
......@@ -12,27 +12,15 @@ const Hello = () => {
<div className="Hello">
<img width="200" alt="icon" src={icon} />
</div>
<h1>electron-react-boilerplate</h1>
<h1>electron-react</h1>
<div className="Hello">
<a
href="https://electron-react-boilerplate.js.org/"
target="_blank"
rel="noreferrer"
>
<button type="button">
<span role="img" aria-label="books">
📚
</span>
Read our docs
</button>
</a>
<button type="button" onClick={()=>{
shell.openPath(location);
}} >
<span role="img" aria-label="books">
🙏
</span>
Donate
挂载
</button>
</div>
</div>
......
import { createRoot } from 'react-dom/client';
import App from './App.jsx';
import App from './App';
const container = document.getElementById('root')!;
const root = createRoot(container);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment