| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-68426f5e"],{"22eb":function(t,e,s){"use strict";s("4944")},4944:function(t,e,s){},"6be0":function(t,e,s){"use strict";s.d(e,"c",(function(){return i})),s.d(e,"b",(function(){return n})),s.d(e,"d",(function(){return o})),s.d(e,"a",(function(){return r}));var a=s("f175");const i=()=>a.a.get("/settings.shop.Storage/lists"),n=t=>a.a.get("/settings.shop.Storage/index",{params:t}),o=t=>a.a.post("/settings.shop.Storage/setup",t),r=t=>a.a.post("/settings.shop.Storage/change",t)},af4f:function(t,e,s){"use strict";s.r(e);s("14d9");var a=s("9ab4"),i=s("1b40"),n=s("6be0");let o=class extends i.e{constructor(){super(...arguments),this.list=[],this.oldEngine="local"}onStorageEdit(t){this.$router.push({path:"/setting/storage/storage",query:{engine:t.engine}})}getStorageList(){Object(n.c)().then(t=>{this.list=t}).catch(()=>{this.$message.error("获取数据失败,请重试!")})}postStorageChange(t){Object(n.a)({engine:t.engine}).then(t=>{this.getStorageList(),this.$message.success("更新成功")}).catch(()=>{this.$message.error("更新失败")})}created(){this.getStorageList()}};o=Object(a.a)([Object(i.a)({components:{}})],o);var r=o,l=(s("22eb"),s("2877")),c=Object(l.a)(r,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"storage-setting"},[e("div",{staticClass:"ls-card"},[e("el-alert",{attrs:{type:"info",closable:!1,"show-icon":""}},[[e("div",{staticStyle:{color:"#4073fa"}},[e("div",[t._v("1.使用对象存储,需要将public目录下的资源文件保留原来目录路径传输到对象存储空间。")]),e("div",[t._v("2.请勿随意切换存储方式,可能导致图片无法查看。")]),e("div",[t._v("3.需要在对象存储后台设置域名跨域,否则图片生成场景无法使用,例海报合成等。")]),e("div",[t._v(" 4.需将对象存储的图片域名添加到微信小程序官方后台request合法域名和downloadFile合法域名。 ")])])]],2)],1),e("div",{staticClass:"ls-user_tag ls-card m-t-20"},[e("div",{staticClass:"list-table m-t-16"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,size:"mini","header-cell-style":{background:"#f5f8ff"}}},[e("el-table-column",{attrs:{prop:"name",label:"存储方式","min-width":"",width:""}}),e("el-table-column",{attrs:{prop:"path",label:"存储位置","min-width":"260",width:""}}),e("el-table-column",{attrs:{prop:"status",label:"状态","min-width":"",width:""},scopedSlots:t._u([{key:"default",fn:function(s){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},on:{change:function(e){return t.postStorageChange(s.row)}},model:{value:s.row.status,callback:function(e){t.$set(s.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{label:"操作","min-width":"",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.onStorageEdit(s.row)}}},[t._v("设置")])]}}])})],1)],1)])])}),[],!1,null,"b83d5d02",null);e.default=c.exports}}]);
|