mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-25 09:35:32 +00:00
基于template做代码结构调整
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<h3>{{title}}</h3>
|
||||
<div style="flex: 1"></div>
|
||||
<el-button size="mini" @click="tab">设置</el-button>
|
||||
<el-button size="mini" @click="onMsgToBg">To-Bg</el-button>
|
||||
</div>
|
||||
<div style="text-align: center;width: 100%; color: #6d6d6d;">
|
||||
<span>支持作者</span>
|
||||
@@ -50,6 +51,13 @@
|
||||
methods: {
|
||||
tab() {
|
||||
chrome.tabs.create({url: 'pages/tap.html'})
|
||||
},
|
||||
onMsgToBg(){
|
||||
debugger
|
||||
let bg = chrome.extension.getBackgroundPage();
|
||||
if(bg){
|
||||
bg.test();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user