如主機環境無法連 IPV6,但是要連線的 FQDN 有 IPV6 與 IPV4 兩種 IP
連線時就必須等 IPV6 連線逾時才會嘗試連 IPV4 IP
此時可新增如下設定,就會優先查 IPV4 IP
# vim /etc/gai.conf
precedence ::ffff:0:0/96 100
precedence ::ffff:0:0/96 100
<b-table bordered striped hover
:items="environments"
:fields="fields"
:current-page="currentPage"
:per-page="perPage"
:filter="filter"
v-model="shownItems"
@row-clicked="myRowClickHandler"
>
<template slot="actions" scope="environment">
<b-btn size="sm" @click="log(environment.item)">Details</b-btn>
</template>
</b-table>
methods: {
myRowClickHandler(record, index) {
// 'record' will be the row data from items
// `index` will be the visible row number (available in the v-model 'shownItems')
log(record); // This will be the item data for the row
}
}
https://github.com/bootstrap-vue/bootstrap-vue/issues/774
https://bootstrap-vue.js.org/docs/components/table#component-reference
參考文章:https://stackoverflow.com/questions/27500861/whats-the-proper-way-to-go-get-a-private-repository 原文是用 gitlab.company.com 當範例,這邊改成一般帳號...