X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;h=03a5b6e3a218ef1260f6d202a16b547d75273f2e;hb=4473050c257453abb37cd53d8d1e6e941c49bf91;hp=32738829f6763eb0692c50e9ac1cc953012c09e7;hpb=e27329232b83700d63c8fb52af6f4c2eec9a569c;p=vchess.git diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 32738829..03a5b6e3 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -111,8 +111,8 @@ export default { && this.selectedPiece.parentNode.id == "sq-"+ci+"-"+cj, }, attrs: { - src: "@/assets/images/pieces/" + - V.getPpath(this.vr.board[ci][cj]) + ".svg", + src: require("@/assets/images/pieces/" + + V.getPpath(this.vr.board[ci][cj]) + ".svg"), }, } ) @@ -239,11 +239,11 @@ export default { 'div', { 'class': { - "col-sm-12":true, - "col-md-10":true, - "col-md-offset-1":true, - "col-lg-8":true, - "col-lg-offset-2":true, + "col-sm-12": true, + "col-md-10": true, + "col-md-offset-1": true, + "col-lg-8": true, + "col-lg-offset-2": true, }, // NOTE: click = mousedown + mouseup on: { @@ -362,3 +362,7 @@ export default { }, }; + +