fix
This commit is contained in:
38
src/App.vue
38
src/App.vue
@@ -187,11 +187,43 @@
|
||||
<div class="card-planet" v-if="planet_status == true">
|
||||
<table class="card-fav">
|
||||
<thead>
|
||||
<span class="card-planet" v-if="planet > 0">
|
||||
<iframe src="https://yui.syui.ai/pkg/planet/?m=t" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
<span class="card-planet" v-if="planet > 1000000">
|
||||
<iframe :src="planet_url" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
<span class="card-planet" v-else-if="planet > 466666">
|
||||
<iframe :src="planet_url + '?g=neutron'" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
<span class="card-planet" v-else-if="planet > 333000">
|
||||
<iframe :src="planet_url + '?m=ai_normal&g=sun'" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
<span class="card-planet" v-else-if="planet > 0">
|
||||
<iframe :src="planet_url + '?m=ai_default&g=moon'" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
|
||||
<!--test
|
||||
<span class="card-planet" v-if="username === 'ai'">
|
||||
<iframe :src="planet_url" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
<span class="card-planet" v-if="username === 'ai'">
|
||||
<iframe :src="planet_url + '?g=neutron'" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
<span class="card-planet" v-if="username === 'ai'">
|
||||
<iframe :src="planet_url + '?m=ai_normal&g=sun'" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
<span class="card-planet" v-if="username === 'ai'">
|
||||
<iframe :src="planet_url + '?m=ai_default&g=moon'" scrolling="no" frameborder="0" style="width:155px;height:200px;padding-bottom: 14px;"></iframe>
|
||||
</span>
|
||||
-->
|
||||
|
||||
</thead>
|
||||
<tbody><tr v-if="planet">M {{ planet }}</tr></tbody>
|
||||
<tbody>
|
||||
<tr v-if="planet > 1000000"><span class="icon-ai"></span></tr>
|
||||
<tr v-else-if="planet > 466666"><span class="icon-home"></span></tr>
|
||||
<tr v-else-if="planet > 333000"><span class="icon-ten"></span></tr>
|
||||
<tr v-else-if="planet > 0"><span class="icon-moon"></span></tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -939,6 +971,7 @@ export default {
|
||||
term_status: false,
|
||||
sort_key: "",
|
||||
mount_google_md: false,
|
||||
planet_url: "https://yui.syui.ai",
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
@@ -956,6 +989,7 @@ export default {
|
||||
this.mount_google_md = false;
|
||||
if (window.location.host === "localhost:8080") {
|
||||
this.api_url = "/api/";
|
||||
this.planet_url = "http://localhost:3000";
|
||||
} else if (window.location.host === "192.168.11.12:8080"){
|
||||
this.api_url = "/api/";
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user