修复输入法跟随; 增加代理设置API

yutent 2023-09-06 12:18:46 +08:00
parent 409e5f1dde
commit da445f2402
4 changed files with 7 additions and 5 deletions

View File

@ -6,7 +6,8 @@ gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, GLib, Gio, GObject, GdkPixbuf
from webengine.gtk3 import WebEngine, create_setting, create_hmr_server
from we.gtk3 import WebEngine, create_setting, create_hmr_server
# from webengine.gtk3 import WebEngine, create_setting, create_hmr_server
from _window import Window
APP_ID = 'fun.wkit.hosts-switch'

View File

@ -34,7 +34,7 @@ createApp({
}
},
render() {
return html` <wc-home @contextmenu.prevent=${noop}></wc-home> `
return html` <wc-home @contextmenu.prevent2=${noop}></wc-home> `
}
})
.use(store)

View File

@ -99,7 +99,7 @@ class Home extends Component {
async mounted() {
window.foo = this
native.proxy.enable('http://127.0.0.1:8888')
let writable = await checkPermission()
if (writable) {
@ -113,6 +113,9 @@ class Home extends Component {
}
addRecord() {
location.href = 'https://www.ipaddress.my/'
return
if (this.$store.activeDomain) {
this.$store.records.push({
record: '',

View File

@ -6,8 +6,6 @@
import { nextTick } from 'wkit'
await native.init()
const APP_CONFIG_DIR = `${native.env.CONFIG_DIR}/hosts-switch`
const HOST_FILE = `${APP_CONFIG_DIR}/host.cache`
const LOCK_FILE = `${APP_CONFIG_DIR}/lock`