diff --git a/src/views/RemoteEmulator/AndroidRemote.vue b/src/views/RemoteEmulator/AndroidRemote.vue index 8847ab70..65d7651a 100644 --- a/src/views/RemoteEmulator/AndroidRemote.vue +++ b/src/views/RemoteEmulator/AndroidRemote.vue @@ -241,7 +241,7 @@ defineProps({ const tabWebView = (port, id, transTitle) => { title.value = transTitle; isWebView.value = false; - iframeUrl.value = `/chrome/devtools/inspector.html?ws=${agent.value.host}:${agent.value.port}/websockets/webView/${agent.value.secretKey}/${port}/${id}`; + iframeUrl.value = `/chrome_devtools/front_end/inspector.html?ws=${agent.value.host}:${agent.value.port}/websockets/webView/${agent.value.secretKey}/${port}/${id}`; nextTick(() => { iFrameHeight.value = document.body.clientHeight - 150; }); diff --git a/src/views/RemoteEmulator/IOSRemote.vue b/src/views/RemoteEmulator/IOSRemote.vue index 5007fa68..01c46092 100644 --- a/src/views/RemoteEmulator/IOSRemote.vue +++ b/src/views/RemoteEmulator/IOSRemote.vue @@ -174,7 +174,7 @@ defineProps({ const tabWebView = (port, id, transTitle) => { title.value = transTitle; isWebView.value = false; - iframeUrl.value = `/chrome/devtools/inspector.html?ws=${agent.value.host}:${agent.value.port}/websockets/webView/${agent.value.secretKey}/${port}/${id}`; + iframeUrl.value = `/chrome_devtools/front_end/inspector.html?ws=${agent.value.host}:${agent.value.port}/websockets/webView/${agent.value.secretKey}/${port}/${id}`; nextTick(() => { iFrameHeight.value = document.body.clientHeight - 180; }); diff --git a/vite.config.js b/vite.config.js index 69e06a11..d51f0f1c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,27 +1,35 @@ -import {defineConfig} from 'vite'; -import {join} from 'path'; +import { defineConfig } from 'vite'; +import { join } from 'path'; import vue from '@vitejs/plugin-vue'; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue()], - server:{ - port: 3002 - }, - build: { - rollupOptions: { - output: { - manualChunks(id) { - if (id.includes('node_modules')) { - return id.toString().split('node_modules/')[1].split('/')[0].toString(); - } - } - } - } - }, - resolve: { - alias: { - '@': join(__dirname, 'src'), + optimizeDeps: { + // vite pre-bundle dependency enter file + entries: ['src/**/*'], + }, + plugins: [vue()], + server: { + port: 3002, + }, + build: { + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes('node_modules')) { + return id + .toString() + .split('node_modules/')[1] + .split('/')[0] + .toString(); + } }, + }, + }, + }, + resolve: { + alias: { + '@': join(__dirname, 'src'), }, + }, });