
Vue
Vue tab
import _ from 'lodash'; //https://lodash.com/ //https://velog.io/@kysung95/%EC%A7%A4%EB%A7%89%EA%B8%80-lodash-%EC%95%8C%EA%B3%A0-%EC%93%B0%EC%9E%90 export const getHashPage = (hash: string, pages: string[], def: string): string => { let page = def; if (hash && hash.length > 0) { let check = hash.substr(1); if (_.indexOf(pages, check) != -1) { page = check; } } return page; } export default class..