mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-30 17:22:09 +00:00
config_tools: reformat Board.vue
reformat Board.vue Tracked-On: #6691 Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
parent
8ac076a540
commit
fb91ad9a1a
@ -63,7 +63,7 @@ import NewBoard from "./NewBoard.vue";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Board",
|
name: "Board",
|
||||||
components: { NewBoard },
|
components: {NewBoard},
|
||||||
props: {
|
props: {
|
||||||
WorkingFolder: {
|
WorkingFolder: {
|
||||||
type: String
|
type: String
|
||||||
@ -117,7 +117,7 @@ export default {
|
|||||||
.then((filePath) => {
|
.then((filePath) => {
|
||||||
if (filePath.length > 0) {
|
if (filePath.length > 0) {
|
||||||
if (this.currentSelectedBoard.length > 0) {
|
if (this.currentSelectedBoard.length > 0) {
|
||||||
if (filePath != this.currentSelectedBoard) {
|
if (filePath !== this.currentSelectedBoard) {
|
||||||
this.showBoardOverwrite = true;
|
this.showBoardOverwrite = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ export default {
|
|||||||
let filepath = ''
|
let filepath = ''
|
||||||
if (useNewFile) {
|
if (useNewFile) {
|
||||||
filepath = this.newFilePath
|
filepath = this.newFilePath
|
||||||
if (filepath != this.currentSelectedBoard) {
|
if (filepath !== this.currentSelectedBoard) {
|
||||||
configurator.removeFile(this.currentSelectedBoard)
|
configurator.removeFile(this.currentSelectedBoard)
|
||||||
.catch((err) => alert(`${err}`))
|
.catch((err) => alert(`${err}`))
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ export default {
|
|||||||
.then(() => configurator.addHistory('Board', boardFileNewPath))
|
.then(() => configurator.addHistory('Board', boardFileNewPath))
|
||||||
.then(() => this.getBoardHistory())
|
.then(() => this.getBoardHistory())
|
||||||
})
|
})
|
||||||
.catch((err)=> {
|
.catch((err) => {
|
||||||
alert(`Loading ${filepath} failed: ${err}`)
|
alert(`Loading ${filepath} failed: ${err}`)
|
||||||
console.log(err)
|
console.log(err)
|
||||||
})
|
})
|
||||||
@ -161,7 +161,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
let boardPath = ''
|
let boardPath = ''
|
||||||
res.map((filepath) => {
|
res.map((filepath) => {
|
||||||
if (filepath.path.search('\\.board\\.xml') != -1) {
|
if (filepath.path.search('\\.board\\.xml') !== -1) {
|
||||||
boardPath = filepath.path
|
boardPath = filepath.path
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user