src/views/deviceWindoes2.vue
@@ -802,6 +802,9 @@ <el-button type="primary" @click="saveSet"> 确认 </el-button> <el-button type="success" @click="shuaxin"> 刷新 </el-button> </div> </template> </el-dialog> @@ -1299,6 +1302,12 @@ ElMessage.warning('请先输入设备编号') } } /** * 刷新页面 */ const shuaxin=()=>{ window.location.reload(); } const onFileChange=async(event: Event)=> { const inputElement = event.target as HTMLInputElement; if (!inputElement.files || inputElement.files.length === 0) return;