|
@@ -8,10 +8,10 @@
|
|
<Panel :data-list="panelList"
|
|
<Panel :data-list="panelList"
|
|
@click="gotoNewRw"></Panel>
|
|
@click="gotoNewRw"></Panel>
|
|
<div v-show="true">
|
|
<div v-show="true">
|
|
- <el-button @click="test">test</el-button>
|
|
|
|
- <el-button @click="test1">test1</el-button>
|
|
|
|
- <el-button @click="openPort">openPort</el-button>
|
|
|
|
- <el-button @click="closePort">closePort</el-button>
|
|
|
|
|
|
+ <el-button @click="test()">test</el-button>
|
|
|
|
+ <el-button @click="test1()">test1</el-button>
|
|
|
|
+ <el-button @click="openPort()">openPort</el-button>
|
|
|
|
+ <el-button @click="closePort()">closePort</el-button>
|
|
<div>{{text}}</div>
|
|
<div>{{text}}</div>
|
|
</div>
|
|
</div>
|
|
<!-- <img style='width:100%;margin-top:10px;' src="../../../public/img/tmt.gif" alt=""> -->
|
|
<!-- <img style='width:100%;margin-top:10px;' src="../../../public/img/tmt.gif" alt=""> -->
|
|
@@ -543,7 +543,7 @@ export default {
|
|
console.log('testtesttesttest111111');
|
|
console.log('testtesttesttest111111');
|
|
},
|
|
},
|
|
async openPort(){
|
|
async openPort(){
|
|
- console.log('openPort');
|
|
|
|
|
|
+ console.log('openPort',navigator);
|
|
if ('serial' in navigator) {
|
|
if ('serial' in navigator) {
|
|
// The Web Serial API is supported.
|
|
// The Web Serial API is supported.
|
|
console.log('the Web Serial API is supported.');
|
|
console.log('the Web Serial API is supported.');
|