stash debugger

This commit is contained in:
pengfei.zhou 2019-08-13 11:02:46 +08:00
parent e8976a42ad
commit d6b9bb60c3
3 changed files with 8 additions and 5 deletions

View File

@ -78,6 +78,7 @@ public class LocalServer extends NanoHTTPD {
return "{}"; return "{}";
} }
}); });
} }
private static String getIpAddressString() { private static String getIpAddressString() {

View File

@ -33,7 +33,6 @@
</template> </template>
<script> <script>
console.log(`ws://${window.location.host}`);
import axios from "axios"; import axios from "axios";
export default { export default {
name: "Context", name: "Context",
@ -46,7 +45,7 @@ export default {
}, },
methods: { methods: {
goBack() { goBack() {
this.$router.go(-1); this.$router.push({ path: "/" });
}, },
debug() { debug() {
console.log("debug"); console.log("debug");
@ -57,7 +56,6 @@ export default {
axios.get(`/api/context?id=${this.$route.params.id}`).then(res => { axios.get(`/api/context?id=${this.$route.params.id}`).then(res => {
this.source = res.data.source; this.source = res.data.source;
this.script = res.data.script; this.script = res.data.script;
console.log(this.script);
}); });
}, },
updated: function() { updated: function() {
@ -75,18 +73,22 @@ div {
p span { p span {
color: #409eff; color: #409eff;
} }
.context { .context {
font-size: 100%; font-size: 100%;
} }
.container { .container {
margin-top: 30px; margin-top: 30px;
margin-left: 30px; margin-left: 30px;
} }
.aside { .aside {
text-align: left; text-align: left;
padding-left: 10px; padding-left: 10px;
} }
.script { .script {
text-align: left; text-align: left;
font-size: 50%; font-size: 50%;

View File

@ -78,7 +78,7 @@ class CounterVM extends ViewModel<CountModel, CounterView> {
}) })
} }
} }
@Entry
class MyPage extends VMPanel<CountModel, CounterView>{ class MyPage extends VMPanel<CountModel, CounterView>{
getVMClass() { getVMClass() {
@ -402,7 +402,7 @@ class SnakeVM extends ViewModel<SnakeModel, SnakeView>{
} }
} }
} }
@Entry
class SnakePanel extends VMPanel<SnakeModel, SnakeView>{ class SnakePanel extends VMPanel<SnakeModel, SnakeView>{
getVMClass() { getVMClass() {