mirror of
https://github.com/KoriIku/luxirty-search
synced 2024-11-21 08:08:33 +00:00
加个配cx的地方
This commit is contained in:
parent
239fd11800
commit
5cffbd4990
@ -25,9 +25,8 @@
|
||||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
const cx = 'd0753b9ad66c34097';
|
||||
const script = document.createElement('script');
|
||||
script.src = `https://cse.google.com/cse.js?cx=${cx}`;
|
||||
script.src = `https://cse.google.com/cse.js?cx=${import.meta.env.VITE_GOOGLE_CSE_CX}`;
|
||||
script.async = true;
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<footer>
|
||||
<p>
|
||||
© Create by <a href="https://github.com/KoriIku">Luxirty</a> with love |
|
||||
© Create by <a href="https://github.com/KoriIku">Luxirty</a> with ♥ |
|
||||
<a href="https://github.com/KoriIku/luxiry-search" target="_blank">
|
||||
GitHub
|
||||
</a>
|
||||
@ -27,7 +27,7 @@ export default {
|
||||
methods: {
|
||||
loadGoogleCSE() {
|
||||
const script = document.createElement('script');
|
||||
script.src = "https://cse.google.com/cse.js?cx=d0753b9ad66c34097";
|
||||
script.src = `https://cse.google.com/cse.js?cx=${import.meta.env.VITE_GOOGLE_CSE_CX}`;
|
||||
script.async = true;
|
||||
document.head.appendChild(script);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user