Skip to content

Commit

Permalink
Fix not showing xdc file
Browse files Browse the repository at this point in the history
  • Loading branch information
sscscc committed May 15, 2023
1 parent 09d36a8 commit f3bfb2b
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions src/views/CodeEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,26 +261,7 @@ export default {
\n\
assign led = sw;\n\
\n\
endmodule\n"},
{
label: "alu.v",
type: "file",
text: "",
}, {
label: "decode.v",
type: "file",
text: "",
},
{
label: "imm.v",
type: "file",
text: "",
},
{
label: "Regfile.v",
type: "file",
text: "",
}
endmodule\n"}
]
}, {
label: "ipcore",
Expand Down Expand Up @@ -315,7 +296,7 @@ endmodule\n"},
},
handleNodeClick(data) {
this.selected = data.type
if (data.type == "file"){
if (data.type == "file" || data.type == "xdc"){
this.content = data.text
this.$refs.MyAce.setValue(this.content)
}
Expand Down Expand Up @@ -391,7 +372,7 @@ endmodule\n"},
compile() {
const json = JSON.stringify(this.data);
axios
.post("http://114.214.209.42:18888/submit_proj_json", json, {
.post("http://202.38.79.96:18888/submit_proj_json", json, {
// headers: {
// "Content-Type": "application/json",
// },
Expand Down

0 comments on commit f3bfb2b

Please sign in to comment.