项目环境配置

This commit is contained in:
xuyanfeng
2021-04-03 16:14:37 +08:00
parent 3f60e58c71
commit 820ce75422
12 changed files with 263 additions and 79 deletions

View File

@@ -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})
}
}
}