mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-25 10:05:25 +00:00
项目环境配置
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
<script lang="ts">
|
||||
import {Component, Vue} from "vue-property-decorator";
|
||||
import HelloWorld from "./HelloWorld.vue";
|
||||
import Manifest from '../manifest.json'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -68,9 +69,9 @@ export default class App extends Vue {
|
||||
|
||||
onClickOptions() {
|
||||
if (chrome && chrome.tabs) {
|
||||
const manifest = require('../manifest/index')
|
||||
if (manifest.options_page) {
|
||||
chrome.tabs.create({url: manifest.options_page})
|
||||
let {page} = Manifest.options_ui;
|
||||
if (page) {
|
||||
chrome.tabs.create({url: page})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user