Browse Source

优化皮肤切换刷新左边菜单栏,修改图片地址错误等

master
wen 2 years ago
parent
commit
6e043b5cde
  1. 2
      .env.production
  2. 2
      dist/index.html
  3. 2
      dist/static/css/app.e3ce4bc6.css
  4. 0
      dist/static/css/chunk-6082a362.d185d2a3.css
  5. 1
      dist/static/js/app.1309a4dc.js
  6. 1
      dist/static/js/app.9a21cee5.js
  7. 1
      dist/static/js/chunk-6082a362.15333289.js
  8. 1
      dist/static/js/chunk-97585c70.57c28400.js
  9. 2
      dist/static/js/chunk-cbc84f7c.aacabd1a.js
  10. 2
      src/layout/components/Sidebar/leftMenusData.js
  11. 2
      src/layout/index.vue
  12. 6
      src/views/systme/switchtheme.vue

2
.env.production

@ -5,4 +5,4 @@ ENV = 'production'
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
# base imgurl # base imgurl
VUE_APP_IMG_URL = '/' VUE_APP_IMG_URL = ''

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

2
dist/static/css/app.3fb323b0.css → dist/static/css/app.e3ce4bc6.css vendored

File diff suppressed because one or more lines are too long

0
dist/static/css/chunk-97585c70.d185d2a3.css → dist/static/css/chunk-6082a362.d185d2a3.css vendored

1
dist/static/js/app.1309a4dc.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/app.9a21cee5.js vendored

File diff suppressed because one or more lines are too long

1
dist/static/js/chunk-6082a362.15333289.js vendored

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6082a362"],{"1e39":function(e,n,t){"use strict";t.r(n);var s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看"+e._s(e.skinlabel)+"站点")])],1):e._e()],1)],1)])},a=[],i=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l=t("4a9d"),o={data:function(){return{options:[{value:"manual",label:"文档站",link:"/"},{value:"webdirectory",label:"导航站",link:"/"},{value:"googleimage",label:"图片站",link:"/"},{value:"videoblog",label:"视频站",link:"/"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(i["k"])(this.skinForm).then((function(t){var s=t.data;1==s.code?(n.$message({showClose:!0,message:s.msg,type:"success"}),e.skinAsk=!0,l["a"].$emit("mkdirSuccess")):n.$message({showClose:!0,message:s.err,type:"error"}),e.skinloading=!1})).catch((function(t){e.skinloading=!1,t.response||t.request,n.$message({showClose:!0,message:t.response.data.err,type:"error"})}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link+Math.round(1e3*Math.random()))})),this.skinAsk=!1}}},r=o,u=(t("a7af"),t("2877")),c=Object(u["a"])(r,s,a,!1,null,null,null);n["default"]=c.exports},"665a":function(e,n,t){},"857a":function(e,n,t){var s=t("1d80"),a=/"/g;e.exports=function(e,n,t,i){var l=String(s(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(i).replace(a,"&quot;")+'"'),o+">"+l+"</"+n+">"}},9911:function(e,n,t){"use strict";var s=t("23e7"),a=t("857a"),i=t("af03");s({target:"String",proto:!0,forced:i("link")},{link:function(e){return a(this,"a","href",e)}})},a7af:function(e,n,t){"use strict";t("665a")},af03:function(e,n,t){var s=t("d039");e.exports=function(e){return s((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}}}]);

1
dist/static/js/chunk-97585c70.57c28400.js vendored

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-97585c70"],{"1e39":function(e,n,t){"use strict";t.r(n);var s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"seitchtheme_m"},[t("h5",[e._v("更换皮肤以查看不同皮肤的前端网站")]),t("div",[t("span",[e._v("更换皮肤:")]),t("el-select",{attrs:{placeholder:"请选择皮肤"},on:{change:e.selectbian},model:{value:e.skinvalue,callback:function(n){e.skinvalue=n},expression:"skinvalue"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),t("div",{staticClass:"Submit1"},[t("el-button",{attrs:{loading:e.skinloading,type:"primary"},on:{click:e.skinSubmit}},[e._v("提交")]),e.skinAsk?t("a",{staticClass:"to_front_web",attrs:{target:"_blank",href:e.skinLink}},[t("el-button",{attrs:{type:"success",round:""}},[e._v("查看"+e._s(e.skinlabel)+"站点")])],1):e._e()],1)],1)])},i=[],a=(t("d3b7"),t("159b"),t("9911"),t("c24f")),l={data:function(){return{options:[{value:"manual",label:"文档站",link:"/"},{value:"webdirectory",label:"导航站",link:"/"},{value:"googleimage",label:"图片站",link:"/"},{value:"videoblog",label:"视频站",link:"/"}],skinvalue:"",skinlabel:"",skinLink:"",skinAsk:!1,skinloading:!1,skinForm:{theme:""}}},created:function(){},methods:{skinSubmit:function(){var e=this,n=this;this.skinloading=!0,this.skinForm.theme=this.skinvalue,Object(a["k"])(this.skinForm).then((function(t){var s=t.data;1==s.code?(n.$message({showClose:!0,message:s.msg,type:"success"}),e.skinAsk=!0):n.$message({showClose:!0,message:s.err,type:"error"}),e.skinloading=!1})).catch((function(t){e.skinloading=!1,t.response||t.request,n.$message({showClose:!0,message:t.response.data.err,type:"error"})}))},selectbian:function(e){var n=this;this.options.forEach((function(t){t.value==e&&(n.skinlabel=t.label,n.skinLink=t.link)}))}}},o=l,r=(t("a04b"),t("2877")),u=Object(r["a"])(o,s,i,!1,null,null,null);n["default"]=u.exports},"857a":function(e,n,t){var s=t("1d80"),i=/"/g;e.exports=function(e,n,t,a){var l=String(s(e)),o="<"+n;return""!==t&&(o+=" "+t+'="'+String(a).replace(i,"&quot;")+'"'),o+">"+l+"</"+n+">"}},9911:function(e,n,t){"use strict";var s=t("23e7"),i=t("857a"),a=t("af03");s({target:"String",proto:!0,forced:a("link")},{link:function(e){return i(this,"a","href",e)}})},a04b:function(e,n,t){"use strict";t("b314")},af03:function(e,n,t){var s=t("d039");e.exports=function(e){return s((function(){var n=""[e]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}},b314:function(e,n,t){}}]);

2
dist/static/js/chunk-cbc84f7c.6cff0b31.js → dist/static/js/chunk-cbc84f7c.aacabd1a.js vendored

File diff suppressed because one or more lines are too long

2
src/layout/components/Sidebar/leftMenusData.js

@ -70,7 +70,7 @@ var menusdata = [
}, },
{ {
id: '4', id: '4',
path: 'https://dev.filesite.io', path: '/',
meta: { title: '前端展示页面', icon: 'link' } meta: { title: '前端展示页面', icon: 'link' }
} }

2
src/layout/index.vue

@ -13,7 +13,7 @@
</a> </a>
<em class="erectline"></em> <em class="erectline"></em>
<!-- <a class="Cache tuichu" href="/admin.php/Cache/index.html">清除缓存</a> --> <!-- <a class="Cache tuichu" href="/admin.php/Cache/index.html">清除缓存</a> -->
<!-- <el-button class="quit" @click="dengchu" id="tuichu" size="mini" round>退出</el-button> --> <!-- <el-button class="quit" id="tuichu" size="mini" round>退出</el-button> -->
</div> </div>
</div> </div>
<div class="content_main"> <div class="content_main">

6
src/views/systme/switchtheme.vue

@ -26,6 +26,7 @@
<script> <script>
//console.log(process.env.VUE_APP_BASE_API); //console.log(process.env.VUE_APP_BASE_API);
import { switchthemeApi} from '@/api/user' import { switchthemeApi} from '@/api/user'
import EventBus from '@/utils/EventBus.js'
export default { export default {
data() { data() {
@ -73,10 +74,10 @@ export default {
let datamain = response.data; let datamain = response.data;
if (datamain.code == 1) { if (datamain.code == 1) {
thiss.$message({showClose: true,message: datamain.msg,type: 'success'}); thiss.$message({showClose: true,message: datamain.msg,type: 'success'});
//this.subloading = false; //this.subloading = false;
this.skinAsk = true; this.skinAsk = true;
EventBus.$emit('mkdirSuccess'); //
} else { } else {
thiss.$message({showClose: true,message: datamain.err,type: 'error'}); thiss.$message({showClose: true,message: datamain.err,type: 'error'});
} }
@ -100,9 +101,10 @@ export default {
this.options.forEach(element => { this.options.forEach(element => {
if (element.value == thisop) { if (element.value == thisop) {
this.skinlabel = element.label; this.skinlabel = element.label;
this.skinLink = element.link; this.skinLink = element.link + Math.round(Math.random()*1000);
} }
}); });
this.skinAsk = false;
} }
} }
} }

Loading…
Cancel
Save