no message

This commit is contained in:
小陌 2023-08-16 23:51:48 +08:00
parent 068b4216ea
commit 27cc707c25
3 changed files with 18 additions and 9 deletions

View File

@ -156,7 +156,10 @@
xupdate(key, name, type){ xupdate(key, name, type){
this.updateKey = key; this.updateKey = key;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.xupdate.open().getComponentType(type).setConfig({name:name, remoteurl:'table/getUpdate?name='+key+'&token='+this.token}); this.$refs.xupdate.open().getComponentType(type).setConfig({
name:name,
remoteurl:'table/getUpdate?name='+key+'&token='+this.token
});
}) })
}, },
loaddata(){ loaddata(){
@ -169,7 +172,7 @@
}); });
}, },
onRemove(){ onRemove(){
this.$http.post('avatar/index/delete',{token: this.token}).then((res) => { this.$http.post('avatar/admin/delete',{token: this.token}).then((res) => {
if (res.code==200) { if (res.code==200) {
this.userData.avatar = ''; this.userData.avatar = '';
this.$refs.uploader.clearFiles(); this.$refs.uploader.clearFiles();

View File

@ -43,10 +43,16 @@ const DEFAULT_CONFIG = {
//localStorageAES加密秘钥位数建议填写8的倍数 //localStorageAES加密秘钥位数建议填写8的倍数
LS_ENCRYPTION_key: '2XNN4K8LC0ELVWN4', LS_ENCRYPTION_key: '2XNN4K8LC0ELVWN4',
//控制台首页默认布局 //控制台首页默认布局
DEFAULT_GRID: [ DEFAULT_GRID: [{
{name:'welcome', layout:12}, name: 'work',
{name:'about', layout:12}, layout: 24
] }, {
name: 'welcome',
layout: 12
}, {
name: 'about',
layout: 12
}, ]
} }
// 如果生产模式就合并动态的APP_CONFIG // 如果生产模式就合并动态的APP_CONFIG
// public/config.js // public/config.js

View File

@ -18,7 +18,7 @@
</li> </li>
</ul> </ul>
<el-drawer title="添加应用" v-model="modsDrawer" :size="570" destroy-on-close> <el-drawer title="添加应用" v-model="modsDrawer" :append-to-body="true" :size="570" destroy-on-close>
<div class="setMods"> <div class="setMods">
<h4>我的常用 ( {{myMods.length}} )</h4> <h4>我的常用 ( {{myMods.length}} )</h4>
<draggable tag="ul" v-model="myMods" animation="200" item-key="path" group="people"> <draggable tag="ul" v-model="myMods" animation="200" item-key="path" group="people">
@ -141,6 +141,6 @@
.setMods ul {margin:20px -5px;min-height: 90px;} .setMods ul {margin:20px -5px;min-height: 90px;}
.setMods li {display: inline-block;width: 80px;height:80px;text-align: center;margin:4.5px;color: #fff;vertical-align: top;padding:4px;padding-top:15px;cursor: move;border-radius: 3px;} .setMods li {display: inline-block;width: 80px;height:80px;text-align: center;margin:4.5px;color: #fff;vertical-align: top;padding:4px;padding-top:15px;cursor: move;border-radius: 3px;}
.setMods li i {font-size: 20px;} .setMods li i {font-size: 20px;}
.setMods li p {font-size: 12px;margin-top: 10px;} .setMods li p {font-size: 12px;margin-top: 10px;width: 100%;white-space:nowrap;text-overflow:ellipsis;overflow: hidden;}
.setMods li.sortable-ghost {opacity: 0.3;} .setMods li.sortable-ghost {opacity: 0.3;}
</style> </style>