提交 b23f9ae5 编写于 作者: 6 62e00738167f7e3ed361db3c

引入 wechat-mp-hack 模块

上级 c977c02f
......@@ -25,7 +25,8 @@
"electron-updater": "^4.6.5",
"element-plus": "^2.2.19",
"string-format": "^2.0.0",
"vue-router": "^4.1.6"
"vue-router": "^4.1.6",
"wechat-mp-hack": "^1.1.10"
},
"devDependencies": {
"@electron-toolkit/tsconfig": "^1.0.1",
......
......@@ -8,3 +8,11 @@ createApp(App)
.use(router)
.use(ElementPlus)
.mount('#app')
// 设置全局变量
window['my'] = {
"settings":{
"title":"MyElectron百宝箱","showSettings":true,"tagsView":true,"fixedHeader":false,"sidebarLogo":false,"errorLog":"production","wechat_dirs":{"root_article":"D:\\_ALL\\LIFE\\Wechat\\文章发布\\"},"dirs":{"cwd":"J:\\_ALL\\CODE\\gitee\\constellations\\Gemini\\MyAndroidAssemble\\electronTools"},
"wechat_mps":{"acg美女cosplay营地":{}}
}
}
......@@ -39,7 +39,9 @@
</template>
<script>
import { my_open_cmd } from '../../utils/my_index.js'
// import { my_open_cmd } from '../../utils/my_index.js'
import wx from 'wechat-mp-hack'
const API = new Wechat('公众号账号', '公众号密码');
export default {
data() {
......@@ -56,7 +58,6 @@ export default {
},
mounted() {
// 测试数据
let my = {"settings":{"title":"MyElectron百宝箱","showSettings":true,"tagsView":true,"fixedHeader":false,"sidebarLogo":false,"errorLog":"production","wechat_dirs":{"root_article":"D:\\_ALL\\LIFE\\Wechat\\文章发布\\"},"dirs":{"cwd":"J:\\_ALL\\CODE\\gitee\\constellations\\Gemini\\MyAndroidAssemble\\electronTools"},"wechat_mps":{"acg美女cosplay营地":{}}}}
this.settings.root_article = my.settings.wechat_dirs.root_article
for(let k in my.settings.wechat_mps) {
......@@ -70,7 +71,8 @@ export default {
methods: {
mp_server() {
var cmd = 'D:/Python/Python386/python.exe D:/_ALL/CODE/gitee/constellations/Capricorn/WeChat/mp_server/main.py '
my_open_cmd(cmd, {'cwd': 'D:/_ALL/CODE/gitee/constellations/Capricorn/WeChat/my_cmd'})
// my_open_cmd(cmd, {'cwd': 'D:/_ALL/CODE/gitee/constellations/Capricorn/WeChat/my_cmd'})
console.log(cmd, wx)
},
mp_open() {},
mp_update_token() {},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册