修改判断条件

v1.4.0
于肖磊 2025-08-11 15:42:06 +08:00
parent 156ee45ca2
commit 2e70c011f7
2 changed files with 7 additions and 6 deletions

View File

@ -6,14 +6,15 @@ import { isEmpty } from 'lodash';
class CommonAPI {
/** 链接初始化接口 */
static getInit() {
if (get_type() == 'shop') {
return index_request({
url: `?s=plugins/index/pluginsname/shop/pluginscontrol/diyapi/pluginsaction/init.html`,
const new_type = get_type();
if (isEmpty(new_type)) {
return request({
url: `diyapi/init`,
method: 'post',
});
} else {
return request({
url: `diyapi/init`,
return index_request({
url: `?s=plugins/index/pluginsname/${ new_type }/pluginscontrol/diyapi/pluginsaction/init.html`,
method: 'post',
});
}

View File

@ -73,7 +73,7 @@
<el-button size="large">导入</el-button>
</template>
</el-upload> -->
<el-button v-if="common_store_config.diy_market_url !== '' && common_store_config.diy_upload_url !== ''" size="large" @click="import_click"></el-button>
<el-button v-if="common_store_config.diy_market_url !== '' || common_store_config.diy_upload_url !== ''" size="large" @click="import_click"></el-button>
<el-button size="large" @click="clear_click"></el-button>
</div>
<!-- 拖拽区 -->