Skip to content

Commit

Permalink
style: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lin594 committed Mar 9, 2024
1 parent 25f887a commit 61f13e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
rules: {
// override/add rules settings here, such as:
'vue/multi-word-component-names': 'off',
'no-undef': 'off',
},
settings: {
'import/resolver': {
Expand All @@ -20,4 +19,9 @@ module.exports = {
parserOptions: {
ecmaVersion: 'latest',
},
globals: {
uni: true,
getApp: true,
getCurrentPages: true,
},
};
5 changes: 4 additions & 1 deletion src/components/WordListShowing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ export default {
window.location.href = 'https://hinghwa.cn/words/Create';
break;
default:
setClipboard('https://hinghwa.cn/words/Create');
uni.setClipboardData({
data: 'https://hinghwa.cn/words/Create',
success: () => uni.showToast({ title: '网址已复制' }),
});
}
},
},
Expand Down

0 comments on commit 61f13e8

Please sign in to comment.