Commit 9618be8f authored by WuFeiyang's avatar WuFeiyang

修改根目录显示

parent 17d6e4b5
......@@ -27,3 +27,8 @@ npm run lint
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
### dist生成路径
```
在vue.config.js中将outputDir更改为本地路径
```
......@@ -24,6 +24,9 @@ setConfig:根据Parent提供的数据填充自己的路径和输入框中的
5. 根据给定路径自动填充返回完整路径
> 路径的来源有两种。一个是Parent向widget提供sample,根据sample中的参数信息将变量补充在URL后。二是根据用户在输入框中输入的URL去向后台请求sample,从而对URL进行填充。
### Widget Type
1.
## Parent
Parent是对所有widget进行管理的部分,是所有widget的父组件。
主要功能分为两部分,一是对Widget的管理,二是支持根据当前URL生成对应widget或者customview。
......
......@@ -127,10 +127,8 @@ export default class App extends Vue {
}
dataAccess(URL: string) {
var dataURL = "a";
dataURL = URL;
axios
.get(dataURL, {
.get(URL, {
headers: {
Pragma: "no-cache",
"Cache-Control": "no-cache"
......@@ -156,11 +154,8 @@ export default class App extends Vue {
}
async mounted() {
// var f1 = window.location.hash;
var f = window.location.hash;
var fragment = "a";
fragment = f;
if (fragment != "#/" && fragment != "#") {
var fragment = window.location.hash;
if (fragment != "#blank" && fragment != "#Blank") {
fragment = fragment.substring(1, fragment.length);
var customViewURL = "/customView/template" + fragment;
var isCustomview: boolean = false;
......
......@@ -265,9 +265,7 @@ export default class Config extends Widget {
}
getPathPoke() {
var f = this.config.data.get.url;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.get.url;
axios.get(pokepath).then(response => {
this.isGetPoke = true;
this.samplePoke(response.data);
......@@ -276,9 +274,7 @@ export default class Config extends Widget {
}
setPathPoke() {
var f = this.config.data.set.url;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.set.url;
axios.get(pokepath).then(response => {
this.isSetPoke = true;
this.samplePoke(response.data);
......
......@@ -168,9 +168,7 @@ export default class Method extends Widget {
}
pathPoke() {
var f = this.config.data.url;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.url;
axios.get(pokepath, {
headers: {
'Pragma': 'no-cache',
......
......@@ -178,9 +178,7 @@ export default class State extends Widget {
}
pathPoke() {
var f = this.config.data.url;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.url;
axios.get(pokepath, {
headers: {
'Pragma': 'no-cache',
......
......@@ -177,9 +177,7 @@ export default class Status extends Widget {
}
pathPoke() {
var f = this.config.data.url;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.url;
axios.get(pokepath, {
headers: {
'Pragma': 'no-cache',
......
......@@ -158,9 +158,7 @@ export default class Thing extends Widget {
}
pathPoke() {
var f = this.config.data.url;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.url;
axios.get(pokepath).then(response => {
this.samplePoke(response.data);
this.updateUI();
......
......@@ -156,9 +156,7 @@ export default class waveView extends Widget {
async pathPoke()
{
(this.$refs.setBasicParams as setBasicParams).updateConfig();
var f = this.config.data.url.path;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.url.path;
console.log(this.config.data.url.path);
await axios.get(this.config.data.url.path).then(response => {
this.samplePoke(response.data);
......@@ -170,9 +168,7 @@ export default class waveView extends Widget {
async pathPokeTime()
{
(this.$refs.setBasicParams as setBasicParams).updateConfig();
var f = this.config.data.url.timePath;
var pokepath = "a";
pokepath = f;
var pokepath = this.config.data.url.timePath;
console.log(this.config.data.url.timePath);
await axios.get(this.config.data.url.timePath).then(response => {
this.samplePokeTime(response.data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment