Vue.component('top',{ template: '
\
\ \
\
\ \
\
\
张三
\
健管师
\
\
\ \ \ 安全退出\ \
\
', props: [], data: function() { return { } }, methods: { logout: function() { // window.localStorage.removeItem(httpRequest.agentName); // location.replace("../login/login.html") } } })