修改判断条件
parent
156ee45ca2
commit
2e70c011f7
|
|
@ -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',
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
<!-- 拖拽区 -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue